mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-09-15 12:58:34 +08:00
改善
This commit is contained in:
parent
02999812c9
commit
94ca00ed07
@ -71,6 +71,7 @@ export default {
|
||||
},
|
||||
logout() {
|
||||
sessionStorage.clear();
|
||||
this.isLogin = false;
|
||||
location.reload();
|
||||
},
|
||||
}
|
||||
|
||||
@ -31,7 +31,7 @@ export default {
|
||||
this.loading = true
|
||||
api.login(this.username,this.password).then(rs => {
|
||||
let res = rs.data
|
||||
console.info('-------------------------------', res)
|
||||
// console.info('-------------------------------', res)
|
||||
if (res.success) {
|
||||
sessionStorage.setItem("glctoken", res.result)
|
||||
location.reload()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user