|
@@ -22,8 +22,9 @@ export default {
|
|
|
history.back();
|
|
|
},
|
|
|
async logout() {
|
|
|
- let url = "/logout";
|
|
|
- let res = await this.$axios.post(url);
|
|
|
+ // let url = "/logout";
|
|
|
+ let res = await this.$axios.basic.loginOut();
|
|
|
+ console.log(res);
|
|
|
// 修改登陆状态
|
|
|
this.$store.commit("updateLogin", false);
|
|
|
// 把用户名置空
|