Update profile.vue
This commit is contained in:
parent
265dc9381d
commit
25925c1969
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user