diff --git a/Yi.Vue2.x/src/layouts/default/Drawer.vue b/Yi.Vue2.x/src/layouts/default/Drawer.vue index 5d080a8b..784e1bab 100644 --- a/Yi.Vue2.x/src/layouts/default/Drawer.vue +++ b/Yi.Vue2.x/src/layouts/default/Drawer.vue @@ -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() { diff --git a/Yi.Vue2.x/src/layouts/default/ListGroup.vue b/Yi.Vue2.x/src/layouts/default/ListGroup.vue index 2f4811ef..d4cec40f 100644 --- a/Yi.Vue2.x/src/layouts/default/ListGroup.vue +++ b/Yi.Vue2.x/src/layouts/default/ListGroup.vue @@ -1,11 +1,5 @@