mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-03 18:28:11 +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>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
openDialogNewWindow({state, dispatch}, dialogId) {
|
openDialogNewWindow({state, dispatch}, dialogId) {
|
||||||
|
if ($A.runNum(dialogId) <= 0) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const dialogData = state.cacheDialogs.find(({id}) => id === dialogId) || {}
|
const dialogData = state.cacheDialogs.find(({id}) => id === dialogId) || {}
|
||||||
dispatch('openChildWindow', {
|
dispatch('openChildWindow', {
|
||||||
name: `dialog-${dialogId}`,
|
name: `dialog-${dialogId}`,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user