|
@@ -12,11 +12,11 @@ NProgress.configure({ showSpinner: false });
|
|
|
const whiteList = ['/login', '/login_hmcs', '/login_cstj', '/register', '/social-callback'];
|
|
|
|
|
|
router.beforeEach(async (to, from, next) => {
|
|
|
- if(to.path == from.path){
|
|
|
- return;
|
|
|
- }
|
|
|
NProgress.start();
|
|
|
if (getToken()) {
|
|
|
+ if(to.path == from.path){
|
|
|
+ return;
|
|
|
+ }
|
|
|
to.meta.title && useSettingsStore().setTitle(to.meta.title);
|
|
|
/* has token*/
|
|
|
if (to.path === '/login'||to.path === '/login_hxcs'||to.path === '/login_cstj') {
|