Browse Source

退出登录时增加 lStorage.remove("historyInfo")

niuheng 3 years ago
parent
commit
1a7ab0d4e9
2 changed files with 3 additions and 1 deletions
  1. 2 0
      src/framework/layout/PageHeader.vue
  2. 1 1
      src/framework/layout/PageSidebar.vue

+ 2 - 0
src/framework/layout/PageHeader.vue

@@ -193,6 +193,8 @@ export default {
         store.commit("layout/setGroupCode", null);
         lStorage.remove("group_code");
 
+        lStorage.remove("historyInfo");
+
         // store.state.layout.projectId = null;
         // lStorage.remove("projectId");
 

+ 1 - 1
src/framework/layout/PageSidebar.vue

@@ -88,7 +88,7 @@ export default {
     },
     created() {
         // console.log('--------------------- PageSidebar created')
-        // console.log('*****************menus ', this.menus)
+        // console.log('*****************menus ', JSON.parse(JSON.stringify(this.menus)))
     },
 
     mounted() {},