jiminglei 2 years ago
parent 3bc8c681a9
commit a590782cb5
  1. 4
      psdc-ui/src/permission.js

@ -18,8 +18,8 @@ router.beforeEach((to, from, next) => {
if (getToken()) { if (getToken()) {
to.meta.title && useSettingsStore().setTitle(to.meta.title) to.meta.title && useSettingsStore().setTitle(to.meta.title)
/* has token*/ /* has token*/
if (to.path === '/login') { if (to.path === '/'|| to.path==='/login') {
next({ path: '/' }) next({ path: 'bigview' })
NProgress.done() NProgress.done()
} else { } else {
if (useUserStore().roles.length === 0) { if (useUserStore().roles.length === 0) {

Loading…
Cancel
Save