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 @@

- +