Skip to content

Commit

Permalink
fix: 修复关闭tag按钮需要点两次才生效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Sep 3, 2022
1 parent d2489ee commit 9f7c99b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/layout/components/header/components/tagBar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ const setContextmenu = (event: HTMLElement, current: RouteLocationNormalized, sh
contextmenuCurrent.value = current;
showContextmenu.value = show;
};
const close = (event: HTMLElement, current: RouteLocationNormalized) => {
const close = async (event: HTMLElement, current: RouteLocationNormalized) => {
setContextmenu(event, current, false);
await nextTick();
contextmenuRef.value?.closeCurrent();
};
const reload = () => {
Expand Down

0 comments on commit 9f7c99b

Please sign in to comment.