From 892fdacc99a11e1dd5d0bf08d7744ee9d057fb53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Mon, 4 Mar 2024 10:37:36 +0800 Subject: [PATCH] =?UTF-8?q?basicform=20=E4=BF=AE=E6=94=B9=20=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BasicForm/src/BasicForm.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 3ac46bf53..91fa42e04 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -361,7 +361,11 @@ const searchTableSuccess = (formField, searchField, val, type, row) => { /** 打开弹窗 */ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any) => { dialogVisible.value = true - dialogTitle.value = t('action.' + titleName) + if (titleName) { + dialogTitle.value = t('action.' + titleName) + } else { + dialogTitle.value = t('action.' + type) + } formType.value = type resetForm() // 修改时,设置数据