feat: 优化新建函数库关闭操作
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
wangdan-fit2cloud 2024-08-22 18:35:24 +08:00
parent e4b17f842d
commit 293302e5ec

View File

@ -193,7 +193,7 @@ function submitDialog() {
}
function close() {
if (!areAllValuesNonEmpty(form.value)) {
if (isEdit.value || !areAllValuesNonEmpty(form.value)) {
visible.value = false
} else {
MsgConfirm(`提示`, `当前的更改尚未保存,确认退出吗?`, {