bug修复

This commit is contained in:
jjLv 2024-12-10 15:45:44 +08:00
parent 5432d08ac1
commit 9ea4ce890f
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,7 @@
let that = this;
that.$refs.exitForm.validate().then((formData) => {
console.log("formData", formData);
if (!that.phoneReg.test(formData.phone)) {
if (formData.phone!="" && !that.phoneReg.test(formData.phone)) {
uni.showToast({
icon: "none",
title: "请输入正确格式的手机号!",