|
@@ -180,13 +180,13 @@ export default {
|
|
toggleClick() {
|
|
toggleClick() {
|
|
this.shrink = !this.shrink;
|
|
this.shrink = !this.shrink;
|
|
},
|
|
},
|
|
- logout() {
|
|
|
|
|
|
+ async logout() {
|
|
// 退出登录
|
|
// 退出登录
|
|
|
|
+ await axios.post("/system/user/logout").catch(() => {});
|
|
this.$store.commit("clearOpenedSubmenu");
|
|
this.$store.commit("clearOpenedSubmenu");
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: "login",
|
|
name: "login",
|
|
});
|
|
});
|
|
- axios.post("/system/user/logout").then((response) => {});
|
|
|
|
},
|
|
},
|
|
handleClickUserDropdown(name) {
|
|
handleClickUserDropdown(name) {
|
|
if (name === "ownSpace") {
|
|
if (name === "ownSpace") {
|