支持管理账号手机号选填

This commit is contained in:
2026-07-21 07:42:32 +08:00
parent 8aa77ab44c
commit 0d947e4784
18 changed files with 192 additions and 68 deletions
@@ -439,7 +439,7 @@ Page({
if (!form.account) {
return '请输入账号'
}
if (!form.phone || form.phone.length !== 11) {
if (form.phone && form.phone.length !== 11) {
return '请输入 11 位手机号'
}
if (this.data.mode === 'create' && !form.password) {