Merge pull request #43 from FE-Roading/main

fix: constantRouter重复添加和addRoute优化
This commit is contained in:
Ah jung
2021-09-15 17:03:46 +08:00
committed by GitHub
2 changed files with 3 additions and 8 deletions

View File

@@ -107,7 +107,7 @@ export const useAsyncRouteStore = defineStore({
} else {
try {
//过滤账户是否拥有某一个权限,并将菜单从加载列表移除
accessedRouters = filter([...asyncRoutes, ...constantRouter], routeFilter);
accessedRouters = filter(asyncRoutes, routeFilter);
} catch (error) {
console.log(error);
}