From 2f3a83758ad478ad52e156753097447e501f0bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Thu, 8 Sep 2022 09:00:28 +0800 Subject: [PATCH] mod: reload page --- src/layout/components/sidebar/components/SideMenu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/components/sidebar/components/SideMenu.vue b/src/layout/components/sidebar/components/SideMenu.vue index 9cc8ea3..83142c2 100644 --- a/src/layout/components/sidebar/components/SideMenu.vue +++ b/src/layout/components/sidebar/components/SideMenu.vue @@ -87,7 +87,7 @@ function handleMenuSelect(key, item) { if (isExternal(item.path)) { window.open(item.path) } else { - if (item.path === currentRoute.value.path && !currentRoute.value.meta?.keepAlive) { + if (item.path === currentRoute.value.path) { appStore.reloadPage() } else { router.push(item.path)