UP 退出系统确认框

This commit is contained in:
sc 2021-07-05 14:21:15 +08:00
parent acfea2468f
commit d966cf5f11
1 changed files with 11 additions and 3 deletions

View File

@ -81,12 +81,20 @@
if(command == "uc"){
this.$router.push({path: '/usercenter'});
}
if(command == "outLogin"){
this.$router.replace({path: '/login'});
}
if(command == "cmd"){
this.$router.push({path: '/cmd'});
}
if(command == "outLogin"){
this.$confirm('确认是否退出当前用户?','提示', {
type: 'warning',
confirmButtonText: '退出',
confirmButtonClass: 'el-button--danger'
}).then(() => {
this.$router.replace({path: '/login'});
}).catch(() => {
//退
})
}
},
//
screen(){