Przeglądaj źródła

退出后清楚标签页缓存

lxf 1 rok temu
rodzic
commit
dceb680cbf
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/components/headerBar/header-bar.vue

+ 1 - 0
src/components/headerBar/header-bar.vue

@@ -262,6 +262,7 @@ function logout() {
     .then(() => {
       userStore.logOut().then(() => {
         location.href = "/index";
+        sessionStorage.removeItem("tags-view_sd");
       });
     })
     .catch(() => {});