master
Tuzki 1 year ago
parent 9f237e4861
commit 818ef917ca
  1. 2
      ruoyi-ui/src/permission.js
  2. 2
      ruoyi-ui/src/utils/request.js

@ -17,7 +17,7 @@ router.beforeEach((to, from, next) => {
to.meta.title && store.dispatch('settings/setTitle', to.meta.title)
/* has token*/
if (to.path === '/login') {
next({ path: '/welcome' })
next({ path: '/login' })
NProgress.done()
} else if (whiteList.indexOf(to.path) !== -1) {
next()

@ -87,7 +87,7 @@ service.interceptors.response.use(res => {
MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => {
isRelogin.show = false;
store.dispatch('LogOut').then(() => {
location.href = '/welcome';
location.href = '/login';
})
}).catch(() => {
isRelogin.show = false;

Loading…
Cancel
Save