From 92d23014a77f502ccd9a7ea19eadcfd2777e4636 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Mon, 29 Dec 2025 16:16:09 +0000 Subject: [PATCH] fix: avoid opening blank dialog window when dialogId is 0 --- resources/assets/js/store/actions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/assets/js/store/actions.js b/resources/assets/js/store/actions.js index 97880771f..0234118c6 100644 --- a/resources/assets/js/store/actions.js +++ b/resources/assets/js/store/actions.js @@ -3580,6 +3580,9 @@ export default { * @returns {Promise} */ openDialogNewWindow({state, dispatch}, dialogId) { + if ($A.runNum(dialogId) <= 0) { + return + } const dialogData = state.cacheDialogs.find(({id}) => id === dialogId) || {} dispatch('openChildWindow', { name: `dialog-${dialogId}`,