|
@@ -51,7 +51,18 @@ export function setupPermission() {
|
|
router.addRoute(route);
|
|
router.addRoute(route);
|
|
});
|
|
});
|
|
|
|
|
|
- next({ path: to.fullPath });
|
|
|
|
|
|
+ // if (to.fullPath.split("/")[1] == "base") {
|
|
|
|
+ // console.log(to.fullPath.split("/")[1]);
|
|
|
|
+ // (
|
|
|
|
+ // "/base/craftManagement/defectMana"
|
|
|
|
+ // );
|
|
|
|
+ // }
|
|
|
|
+ next({
|
|
|
|
+ path:
|
|
|
|
+ to.fullPath.split("/")[1] == "base"
|
|
|
|
+ ? "/base/craftManagement/defectMana"
|
|
|
|
+ : to.fullPath,
|
|
|
|
+ });
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.error("beforeEach error", error);
|
|
console.error("beforeEach error", error);
|
|
// 移除 token 并跳转登录页
|
|
// 移除 token 并跳转登录页
|