优化菜单切换导致浏览器刷新问题

This commit is contained in:
guanj
2026-07-09 15:40:56 +08:00
parent 8bca4191f2
commit ee9cd057b8
6 changed files with 233 additions and 193 deletions

View File

@@ -70,6 +70,7 @@ export const onClickMenu = (menu: RouteRecordRaw) => {
switch (menu.meta?.menu_type) {
case 'iframe':
case 'tab':
if (router.currentRoute.value.path === menu.path) return
routePush({ path: menu.path })
break
case 'link':