Forráskód Böngészése

Merge branch 'main' of http://gogs.ainets.net/mirendemianbaona/nc-admin

wxy 4 hónapja
szülő
commit
3d1de79d9c
2 módosított fájl, 8 hozzáadás és 11 törlés
  1. 0 11
      src/store/modules/routerTag.js
  2. 8 0
      src/utils/router.js

+ 0 - 11
src/store/modules/routerTag.js

@@ -10,16 +10,5 @@ export const RouterTagData = defineStore({
 
     },
     actions: {
-        tagsPushData(items) {
-            if (!this.tagData.some((res) => res.name === items.name)) {
-                this.tagData.push(items);
-            }
-            setLocalStorage('LAOUT_TAG', this.tagData);
-        },
-        // 删除标签
-        handleRemove(items){
-            this.tagData = this.tagData.filter((res) => res.name!== items.name);
-            setLocalStorage('LAOUT_TAG', this.tagData);
-        }
     }
 })

+ 8 - 0
src/utils/router.js

@@ -1,14 +1,22 @@
 import router from '@/router' 
 
+import { useSystemStore } from '@/store/modules/systemStore'
+
+
 
 /**
  * * 退出
  */
 export const fn_logout = (router) => {
+  const systemStore = useSystemStore()
+  systemStore.$reset()
   localStorage.removeItem("user_login_information");
   localStorage.removeItem("routeItem");
   localStorage.removeItem("menus");
   localStorage.removeItem("token");
+  localStorage.removeItem("menuTabSate")
+  localStorage.removeItem("menuSecondLongShow")
+  
   if(router){
     router.push({
       name: "login"