refactor: 接口路径变更和删除依赖包

Former-commit-id: 528a17fec4091a54ae63c7cc612c7671d0ed56ae
This commit is contained in:
郝先瑞
2022-07-05 08:03:39 +08:00
parent 410c5ed56d
commit c14a00a14f
26 changed files with 510 additions and 359 deletions

View File

@@ -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();
}