File tree Expand file tree Collapse file tree
src/views/setting/includes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -165,21 +165,21 @@ export default class BasicSetting extends Vue {
165165 }
166166 }
167167
168- /**
169- * check form validate
170- * @returns {boolean}
171- */
172- checkFormValid() {
173- if (! [' https://' , ' http://' ].some (d => this .form .domain .startsWith (d ))) {
174- this .$message .warn (this .$t (' domainShouldStartsWithWarn' ))
175- return false
176- }
177- return true
178- }
168+ // / **
169+ // * check form validate
170+ // * @returns {boolean}
171+ // */
172+ // checkFormValid() {
173+ // // if (!['https://', 'http://'].some(d => this.form.domain.startsWith(d))) {
174+ // // this.$message.warn(this.$t('domainShouldStartsWithWarn'))
175+ // // return false
176+ // // }
177+ // return true
178+ // }
179179
180180 submit() {
181- const formValid = this .checkFormValid ()
182- if (! formValid ) { return false }
181+ // const formValid = this.checkFormValid()
182+ // if (!formValid) { return false }
183183
184184 const form = {
185185 ... this .form ,
You can’t perform that action at this time.
0 commit comments