|
@@ -15,9 +15,9 @@ const whiteList = ['/login', '/auth-redirect', '/bind', '/register'];
|
|
|
|
|
|
router.beforeEach((to, from, next) => {
|
|
router.beforeEach((to, from, next) => {
|
|
NProgress.start()
|
|
NProgress.start()
|
|
- useSettingsStore().initGenLotBySub()
|
|
|
|
if (getToken()) {
|
|
if (getToken()) {
|
|
to.meta.title && useSettingsStore().setTitle(to.meta.title)
|
|
to.meta.title && useSettingsStore().setTitle(to.meta.title)
|
|
|
|
+ useSettingsStore().initGenLotBySub()
|
|
/* has token*/
|
|
/* has token*/
|
|
if (to.path === '/login') {
|
|
if (to.path === '/login') {
|
|
next({ path: '/' })
|
|
next({ path: '/' })
|