mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: 优化新建函数库关闭操作
This commit is contained in:
parent
e4b17f842d
commit
293302e5ec
|
|
@ -193,7 +193,7 @@ function submitDialog() {
|
|||
}
|
||||
|
||||
function close() {
|
||||
if (!areAllValuesNonEmpty(form.value)) {
|
||||
if (isEdit.value || !areAllValuesNonEmpty(form.value)) {
|
||||
visible.value = false
|
||||
} else {
|
||||
MsgConfirm(`提示`, `当前的更改尚未保存,确认退出吗?`, {
|
||||
|
|
|
|||
Loading…
Reference in New Issue