diff --git a/src/router/route-output.ts b/src/router/route-output.ts index 47e2e4c..6145457 100644 --- a/src/router/route-output.ts +++ b/src/router/route-output.ts @@ -3,7 +3,6 @@ import { storeToRefs } from "pinia"; import { useRoutesConfigStore } from "@/store/modules/route-config"; import { useThemeConfig } from "@/store/modules/theme-config"; import { deepClone, arrayFlattened } from "@/utils/index"; -import { useRoutingMethod } from "@/hooks/useRoutingMethod"; /** * 路由树转一维数组 @@ -32,11 +31,6 @@ export const currentlyRoute = (current: any) => { store.setTabs(routeList.value[0]); } - // 跳转路由是有权限的,从有权限路由中匹配 - const { hasRoute } = useRoutingMethod(); - // 未找到,说明当前跳转路由无权限 - if (!hasRoute(route.name)) return; - // 存入当前路由-高亮 store.setCurrentRoute(route);