优化菜单切换导致浏览器刷新问题
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user