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()) {
to.meta.title && useSettingsStore().setTitle(to.meta.title)
/* has token*/
if (to.path === '/login') {
next({ path: '/' })
if (to.path === '/'|| to.path==='/login') {
next({ path: 'bigview' })
NProgress.done()
} else {
if (useUserStore().roles.length === 0) {

Loading…
Cancel
Save