fix: type error

This commit is contained in:
vben
2020-11-12 22:20:15 +08:00
parent 21e0548e34
commit ecfb702b09
37 changed files with 83 additions and 73 deletions

View File

@@ -91,9 +91,7 @@ function basicFilter(routes: RouteRecordNormalized[]) {
if (route.meta.carryParam) {
return pathToRegexp(route.path).test(menu.path);
}
if (route.meta.ignoreAuth) {
return false;
}
if (route.meta.ignoreAuth) return false;
}
return route.path === menu.path;
});