luohailiang před 2 roky
rodič
revize
39733fa944
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/layout/app/components/AppHeader/index.vue

+ 2 - 2
src/layout/app/components/AppHeader/index.vue

@@ -5,8 +5,8 @@ const APP_TITLE = ref(document.title)
 function handleCommand(command) {
   switch (command) {
     case 'loginOut':
-      if (localStorage.getItem('userInfo')) {
-        localStorage.removeItem('userInfo');
+      if (sessionStorage.getItem('userInfo')) {
+          sessionStorage.removeItem('userInfo');
         window.open(window.GLOBAL_CONFIG.origin, '_self');
         // loginShow = true;
       }