前端问题修改

This commit is contained in:
zhouzy062 2024-03-07 10:44:18 +08:00
parent 51e0dd0681
commit 7f33b1a081
5 changed files with 4 additions and 5 deletions

View File

@ -103,7 +103,7 @@ export default {
type: 'warning'
}).then(() => {
this.$store.dispatch('LogOut').then(() => {
location.href = '/index';
location.href = '/login';
})
}).catch(() => {});
}

View File

@ -32,7 +32,7 @@ router.beforeEach((to, from, next) => {
}).catch(err => {
store.dispatch('LogOut').then(() => {
Message.error(err)
next({ path: '/' })
next({ path: '/login' })
})
})
} else {

View File

@ -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 = '/index';
location.href = '/login';
})
}).catch(() => {
isRelogin.show = false;

View File

@ -304,7 +304,6 @@ export default {
query:{
taskId:row.taskId,
isEdit:true,
isBack:false,
}
})
},

View File

@ -344,7 +344,7 @@ export default {
this.GetDeviceTypeTree()
// this.getList();
if(this.$route.query.taskId&&!this.$route.query.isBack){
if(this.$route.query.taskId){
this.GetTaskDetail(this.$route.query.taskId)
}
if(this.$route.query.taskId&&this.$route.query.isBack){