From 9f7c99bdb9ee24859054d446ff3a6146e24ef493 Mon Sep 17 00:00:00 2001 From: yuntian001 <479820787@qq.com> Date: Sun, 4 Sep 2022 00:28:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=85=B3=E9=97=ADtag?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E9=9C=80=E8=A6=81=E7=82=B9=E4=B8=A4=E6=AC=A1?= =?UTF-8?q?=E6=89=8D=E7=94=9F=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/header/components/tagBar/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layout/components/header/components/tagBar/index.vue b/src/layout/components/header/components/tagBar/index.vue index 40ed7a83..f8729e76 100644 --- a/src/layout/components/header/components/tagBar/index.vue +++ b/src/layout/components/header/components/tagBar/index.vue @@ -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 = () => {