From d01c3ff9cad0d0c782e595acefb47e148cce8c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com> Date: Tue, 26 Apr 2022 02:13:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=80=80=E5=87=BA=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Vue2.x/src/layouts/default/Drawer.vue | 5 +- Yi.Vue2.x/src/layouts/default/ListGroup.vue | 78 +++++++++------------ Yi.Vue2.x/src/util/menuHandle.js | 12 ++++ 3 files changed, 49 insertions(+), 46 deletions(-) create mode 100644 Yi.Vue2.x/src/util/menuHandle.js 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 @@