From 4750cc0630f900bcefb7a86df52fc07275dc25fb Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Sun, 5 Feb 2023 17:31:50 +0800 Subject: [PATCH] fix(cli): keyword error --- .../LINGYUN/Abp/Cli/UI/Vben/Templates/VbenModalViewScript.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnet-core/modules/cli/LINGYUN.Abp.Cli/LINGYUN/Abp/Cli/UI/Vben/Templates/VbenModalViewScript.tpl b/aspnet-core/modules/cli/LINGYUN.Abp.Cli/LINGYUN/Abp/Cli/UI/Vben/Templates/VbenModalViewScript.tpl index 8e586edae..47bdd7add 100644 --- a/aspnet-core/modules/cli/LINGYUN.Abp.Cli/LINGYUN/Abp/Cli/UI/Vben/Templates/VbenModalViewScript.tpl +++ b/aspnet-core/modules/cli/LINGYUN.Abp.Cli/LINGYUN/Abp/Cli/UI/Vben/Templates/VbenModalViewScript.tpl @@ -43,8 +43,8 @@ const [registerModal, { {{ if model.has_submit }}closeModal{{ end }} }] = useModalInner((data) => { nextTick(() => { resetFields(); - fetchEntity(data.{{ model.key }}) { - fetchEntity(data.{{ model.key }}); + if (data.{{ model.key }}) { + fetchEntity(data.{{ model.key }}); } }); });