JeecgBoot 2.3 里程碑版本发布,支持微服务和单体自由切换、提供新行编辑表格JVXETable

This commit is contained in:
zhangdaiscott
2020-09-13 18:23:23 +08:00
parent 65d1e6a879
commit 7f30a186df
533 changed files with 187550 additions and 36942 deletions

View File

@ -32,8 +32,9 @@ const err = (error) => {
notification.error({ message: '系统提示', description: '拒绝访问',duration: 4})
break
case 500:
let path = window.location.href
//notification.error({ message: '系统提示', description:'Token失效请重新登录!',duration: 4})
if(token && data.message=="Token失效请重新登录"){
if(token && data.message.includes("Token失效") && path.indexOf('/user/login') < 0){
// update-begin- --- author:scott ------ date:20190225 ---- for:Token失效采用弹框模式不直接跳转----
// store.dispatch('Logout').then(() => {
// window.location.reload()
@ -47,7 +48,6 @@ const err = (error) => {
store.dispatch('Logout').then(() => {
Vue.ls.remove(ACCESS_TOKEN)
try {
let path=that.$route.path;
if(path.indexOf('/user/login')==-1){
window.location.reload()
}