refactor: 接口路径变更和删除依赖包
Former-commit-id: 528a17fec4091a54ae63c7cc612c7671d0ed56ae
This commit is contained in:
@@ -21,7 +21,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
const hasGetUserInfo = user.roles.length > 0;
|
||||
if (hasGetUserInfo) {
|
||||
if (to.matched.length === 0) {
|
||||
from.name ? next({ name: from.name }) : next('/401');
|
||||
from.name ? next({ name: from.name as any }) : next('/401');
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user