Skip to content

Commit 1d34aef

Browse files
committed
fix domain setting bug
1 parent 3e44945 commit 1d34aef

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

src/views/setting/includes/BasicSetting.vue

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)