瀏覽代碼

退出登录

luohailiang 2 年之前
父節點
當前提交
39733fa944
共有 1 個文件被更改,包括 2 次插入2 次删除
  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;
       }