From d59d3989f775695f4b7cc534675d1ee0a336cf15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= <2270033969@qq.com> Date: Sun, 14 Jul 2024 13:51:58 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=A1=A8=E5=8D=95get${ClassName}Data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "single/\350\241\250\345\215\225.vue" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git "a/single/\350\241\250\345\215\225.vue" "b/single/\350\241\250\345\215\225.vue" index b7ebb7c..9e26fe5 100644 --- "a/single/\350\241\250\345\215\225.vue" +++ "b/single/\350\241\250\345\215\225.vue" @@ -173,7 +173,7 @@ const openDialog = (id: string) => { // 获取${className}信息 if (id) { form.${pk.attrName} = id - get${className}Data(id) + get${ClassName}Data(id) } }; @@ -197,7 +197,7 @@ const onSubmit = async () => { // 初始化表单数据 -const get${className}Data = (id: string) => { +const get${ClassName}Data = (id: string) => { // 获取数据 loading.value = true getObj({${pk.attrName}: id}).then((res: any) => {