From 66ee735d6432dd313239967f711e72572f8fda1a Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Thu, 28 Mar 2024 10:48:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E4=BB=8B=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/doctor/doctor-introduction/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/doctor/doctor-introduction/index.vue b/src/views/doctor/doctor-introduction/index.vue index 21ee44c..6754542 100644 --- a/src/views/doctor/doctor-introduction/index.vue +++ b/src/views/doctor/doctor-introduction/index.vue @@ -262,28 +262,28 @@ const rules = reactive({ avatar_reason: [ { validator: (value, cb) => { - if (value.length>20) { + if (value && value.length>20) { cb('头像理由不能超过20个字符'); } } }], doctor_expertise_reason: [ { validator: (value, cb) => { - if (value.length>20) { + if (value && value.length>20) { cb('专长理由不能超过20个字符'); } } }], brief_introduction_reason: [ { validator: (value, cb) => { - if (value.length>20) { + if (value && value.length>20) { cb('简介理由不能超过20个字符'); } } }], be_good_at_reason: [ { validator: (value, cb) => { - if (value.length>20) { + if (value && value.length>20) { cb('擅长理由不能超过20个字符'); } }