add logout prompt?

This commit is contained in:
vapormusic 2022-02-20 20:15:49 +07:00
parent 462d77fc1e
commit 2523498a37
2 changed files with 7 additions and 6 deletions

View file

@ -895,8 +895,11 @@ const app = new Vue({
less.refresh()
},
unauthorize() {
this.mk.unauthorize()
document.location.reload()
bootbox.confirm(app.getLz('term.confirmLogout'), function(result){
if (result){
app.mk.unauthorize()
document.location.reload()}
});
},
getAppClasses() {
let classes = {}
@ -2375,9 +2378,6 @@ const app = new Vue({
}, 13000)
})
},
unauthorize() {
this.mk.unauthorize()
},
showSearch() {
this.page = "search"
},