From f063e188f2561842c4869f31e1060b920a37f843 Mon Sep 17 00:00:00 2001 From: WangJie Date: Sat, 24 Aug 2019 00:18:12 +0800 Subject: [PATCH] fix: remove item before open link --- src/app/store/lists.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/store/lists.js b/src/app/store/lists.js index d58ab7d..6bc7bf0 100644 --- a/src/app/store/lists.js +++ b/src/app/store/lists.js @@ -124,7 +124,9 @@ export default { itemClicked({dispatch, state}, [listIndex, tabIndex]) { const action = state.opts.itemClickAction if (action === 'open-and-remove') { - return dispatch('removeTab', [listIndex, tabIndex]) + setTimeout(() => { + dispatch('removeTab', [listIndex, tabIndex]) + }, 0) } }, removeList({commit, state}, listIndex) {