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 }}); } }); });