回滚本地调试注释代码
This commit is contained in:
parent
3bf1d59f88
commit
7ab97bc962
@ -20,9 +20,9 @@ const isWhiteList = (path: string) => {
|
||||
router.beforeEach(async (to, from, next) => {
|
||||
NProgress.start();
|
||||
next();
|
||||
/* if (getToken()) {
|
||||
if (getToken()) {
|
||||
to.meta.title && useSettingsStore().setTitle(to.meta.title as string);
|
||||
/!* has token*!/
|
||||
/* has token*/
|
||||
if (to.path === '/login') {
|
||||
next({ path: '/' });
|
||||
NProgress.done();
|
||||
@ -63,7 +63,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
next(`/login?redirect=${redirect}`); // 否则全部重定向到登录页
|
||||
NProgress.done();
|
||||
}
|
||||
}*/
|
||||
}
|
||||
});
|
||||
|
||||
router.afterEach(() => {
|
||||
|
@ -125,7 +125,7 @@ service.interceptors.response.use(
|
||||
return res.data;
|
||||
}
|
||||
return Promise.resolve(res.data);
|
||||
/* if (code === 401) {
|
||||
if (code === 401) {
|
||||
// prettier-ignore
|
||||
if (!isRelogin.show) {
|
||||
isRelogin.show = true;
|
||||
@ -159,7 +159,7 @@ service.interceptors.response.use(
|
||||
return Promise.reject('error');
|
||||
} else {
|
||||
return Promise.resolve(res.data);
|
||||
}*/
|
||||
}
|
||||
},
|
||||
(error: any) => {
|
||||
let { message } = error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user