| | |
| | | import { fa } from 'element-plus/es/locale'; |
| | | |
| | | NProgress.configure({ showSpinner: false }); |
| | | const whiteList = ['/login', '/register', '/social-callback']; |
| | | const whiteList = ['/login', '/register', '/social-callback', '/rzt_login']; |
| | | |
| | | router.beforeEach(async (to, from, next) => { |
| | | NProgress.start(); |
| | |
| | | to.meta.title && useSettingsStore().setTitle(to.meta.title as string); |
| | | |
| | | /* has token*/ |
| | | if (to.path === '/login') { |
| | | if (to.path === '/login' || to.path === '/rzt_login') { |
| | | next({ path: '/' }); |
| | | NProgress.done(); |
| | | } else { |