fix : 调整部门管理演示,优化移动端详情

This commit is contained in:
2024-06-30 22:49:37 +08:00
parent 47a5cd3338
commit 09e2bfc605
11 changed files with 59 additions and 37 deletions

View File

@@ -35,12 +35,12 @@ serveice.interceptors.response.use(response => {
const status = response.status;
switch (status) {
case 401:
ElMessageBox.confirm('登录状态已过期,请重新登录', '系统提示', {
confirmButtonText: '重新登录',
cancelButtonText: '取消',
type: 'warning',
closeOnClickModal: false
}).then(() => {
// ElMessageBox.confirm('登录状态已过期,请重新登录', '系统提示', {
// confirmButtonText: '重新登录',
// cancelButtonText: '取消',
// type: 'warning',
// closeOnClickModal: false
// }).then(() => {
removeToken()
let path = window.location.pathname;
let query = window.location.search
@@ -49,7 +49,7 @@ serveice.interceptors.response.use(response => {
query: query
}))
window.location.href = `${window.location.origin}/api/auth/cas/login`
})
// })
return Promise.reject('会话已过期,请重新登录')
case 402:
break;