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