UP 退出系统确认框
This commit is contained in:
parent
acfea2468f
commit
d966cf5f11
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue