完善退出登录

This commit is contained in:
橙子
2022-04-26 02:13:03 +08:00
parent 3720644153
commit d01c3ff9ca
3 changed files with 49 additions and 46 deletions

View File

@@ -58,9 +58,8 @@ export default {
});
},
logout() {
this.$store.dispatch("Logout").then((resp) => {
this.$router.push({ path: "/login" });
});
this.$store.dispatch("Logout");
this.$router.push({ path: "/login" });
},
},
created() {