|
@@ -183,7 +183,7 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
|
|
const handleStore = async () => {
|
|
|
if (!itemData.value.id) return message.warning('缺少id,请稍后再试')
|
|
|
const formQuery = FormPageRef.value?.formQuery || {}
|
|
|
- if (!formQuery?.name_zh) return message.warning(`中文姓名未填写,请完善后再进行保存`)
|
|
|
+ if (!formQuery?.name_zh && !formQuery?.name_en) return message.warning(`请完善中文名称或英文名称后再进行保存`)
|
|
|
if (Array.isArray(formQuery.mobile)) {
|
|
|
formQuery.mobile = formQuery.mobile.filter(i => Boolean(i)).map(j => String(j).replace(/,|,/g, '')).join(',')
|
|
|
}
|