Fix(店铺):字段值为null时,必填校验会报错导致无法提交数据
This commit is contained in:
@@ -538,7 +538,7 @@ export default {
|
||||
},
|
||||
getCode() {
|
||||
if (this.reviewing) return
|
||||
if (this.form.phone.length === 0) {
|
||||
if (!this.form.phone) {
|
||||
uni.$u.toast('请输入手机号')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -719,7 +719,7 @@ export default {
|
||||
},
|
||||
getCode() {
|
||||
if (this.reviewing) return
|
||||
if (this.formSupplier.phone.length === 0) {
|
||||
if (!this.formSupplier.phone) {
|
||||
uni.$u.toast('请输入手机号')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -328,7 +328,7 @@ export default {
|
||||
},
|
||||
getCode() {
|
||||
if (this.reviewing) return
|
||||
if (this.form.phone.length === 0) {
|
||||
if (!this.form.phone) {
|
||||
uni.$u.toast('请输入手机号')
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user