mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-31 16:18:23 +00:00
fix: avoid opening blank dialog window when dialogId is 0
This commit is contained in:
parent
7c3f33ea0d
commit
92d23014a7
3
resources/assets/js/store/actions.js
vendored
3
resources/assets/js/store/actions.js
vendored
@ -3580,6 +3580,9 @@ export default {
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
openDialogNewWindow({state, dispatch}, dialogId) {
|
||||
if ($A.runNum(dialogId) <= 0) {
|
||||
return
|
||||
}
|
||||
const dialogData = state.cacheDialogs.find(({id}) => id === dialogId) || {}
|
||||
dispatch('openChildWindow', {
|
||||
name: `dialog-${dialogId}`,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user