Fix(店铺):字段值为null时,必填校验会报错导致无法提交数据

This commit is contained in:
lifizer
2024-07-05 20:48:53 +08:00
parent 44d4a21eba
commit 4c8e79ebba
4 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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
}