修改
This commit is contained in:
parent
6709a878a7
commit
fb3a842131
@ -219,21 +219,19 @@ const handleAuthorized = () => {
|
||||
if (!isRelogin.show) {
|
||||
isRelogin.show = true
|
||||
ElMessageBox.confirm(t('sys.api.timeoutMessage'), t('common.confirmTitle'), {
|
||||
showCancelButton: false,
|
||||
closeOnClickModal: false,
|
||||
showClose: false,
|
||||
confirmButtonText: t('login.relogin'),
|
||||
cancelButtonText: t('common.cancel'),
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
const { wsCache } = useCache()
|
||||
resetRouter() // 重置静态路由表
|
||||
wsCache.clear()
|
||||
removeToken()
|
||||
isRelogin.show = false
|
||||
window.location.href = import.meta.env.VITE_BASE_PATH
|
||||
})
|
||||
.then(() => {
|
||||
const { wsCache } = useCache()
|
||||
resetRouter() // 重置静态路由表
|
||||
wsCache.clear()
|
||||
removeToken()
|
||||
isRelogin.show = false
|
||||
window.location.href = import.meta.env.VITE_BASE_PATH
|
||||
})
|
||||
.catch(() => {
|
||||
isRelogin.show = false
|
||||
})
|
||||
}
|
||||
return Promise.reject(t('sys.api.timeoutMessage'))
|
||||
}
|
||||
|
@ -317,6 +317,42 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
||||
title: '查看 OA 请假',
|
||||
activeMenu: 'bpm/oa/leave/detail'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/bpm/task/done',
|
||||
component: () => import('@/views/bpm/task/done/index.vue'),
|
||||
name: 'TaskDone',
|
||||
meta: {
|
||||
noCache: true,
|
||||
hidden: true,
|
||||
canTo: true,
|
||||
title: '已办任务',
|
||||
activeMenu: 'bpm/task/done/index'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/bpm/task/todo',
|
||||
component: () => import('@/views/bpm/task/todo/index.vue'),
|
||||
name: 'TaskTodo',
|
||||
meta: {
|
||||
noCache: true,
|
||||
hidden: true,
|
||||
canTo: true,
|
||||
title: '代办任务',
|
||||
activeMenu: 'bpm/task/todo/index'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/bpm/processInstance',
|
||||
component: () => import('@/views/bpm/processInstance/index.vue'),
|
||||
name: 'processInstance',
|
||||
meta: {
|
||||
noCache: true,
|
||||
hidden: true,
|
||||
canTo: true,
|
||||
title: '流程办理',
|
||||
activeMenu: 'bpm/processInstance/index'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user