From 4fec3aabacc223a162b5cbaa38ed5b14992f67ee Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sat, 1 Aug 2020 03:32:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E8=8D=90=E5=90=8E=E5=8F=B0=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/center/security.vue | 2 ++ components/lang.vue | 2 ++ layouts/mainmenu.vue | 2 +- nuxt.config.js | 10 ++++++---- pages/index/document.vue | 33 ++++++++++++++++++++++++--------- store/read.js | 5 +++++ 6 files changed, 40 insertions(+), 14 deletions(-) diff --git a/components/center/security.vue b/components/center/security.vue index cd904f9..3766173 100644 --- a/components/center/security.vue +++ b/components/center/security.vue @@ -101,6 +101,8 @@ if(res.code==='200'){ that.$message.info(that.$t('center.security.tip.ok').toString()) that.$cookies.remove(that.GLOBAL.user_key) + that.$store.commit('read/reset') + that.$store.commit('menus/none') that.$router.push(that.localePath('/account')) }else if(res.msg!==null){ that.$message.error(res.msg) diff --git a/components/lang.vue b/components/lang.vue index 1f5ad4e..f856057 100644 --- a/components/lang.vue +++ b/components/lang.vue @@ -32,6 +32,8 @@ methods:{ logout:function() { this.$cookies.remove(this.GLOBAL.user_key) + this.$store.commit('read/reset') + this.$store.commit('menus/none') this.$router.push(this.localePath('/account')) } } diff --git a/layouts/mainmenu.vue b/layouts/mainmenu.vue index 9b79264..c95ee23 100644 --- a/layouts/mainmenu.vue +++ b/layouts/mainmenu.vue @@ -7,7 +7,7 @@

- +