From 25925c1969e0cbc648f6663420f857801769fea4 Mon Sep 17 00:00:00 2001 From: huxuejian Date: Thu, 15 Oct 2026 17:27:06 +0800 Subject: [PATCH] Update profile.vue --- pages/work/profile.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/work/profile.vue b/pages/work/profile.vue index 01cd0e1..8249892 100644 --- a/pages/work/profile.vue +++ b/pages/work/profile.vue @@ -232,7 +232,10 @@ async function save() { ) { return toast("请输入姓名"); } - if (type.value === "cert" && !jobStr.value) { + if ( + type.value === "cert" && + (!Array.isArray(formData.value.job) || formData.value.job.length === 0) + ) { return toast("请选择岗位信息"); } const apiName = doctorInfo.value @@ -255,7 +258,12 @@ async function save() { await getDoctorInfo({ withHlwDeptInfo: true }); form.value = {}; if (type.value === "cert") { - toCert(); + if (["医生", "医生助理"].includes(jobStr.value)) { + toCert(); + } else { + await toast("保存成功"); + back(); + } } else { await toast("保存成功"); back();