Browse Source

退出登录时候清空pdf缓存。

jxq 2 tuần trước cách đây
mục cha
commit
5712c79cff
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/store/modules/user.ts

+ 1 - 0
src/store/modules/user.ts

@@ -69,6 +69,7 @@ export const useUserStore = defineStore("user", () => {
         .then(() => {
           isGetAuth.value = false;
           localStorage.setItem("token", "");
+          localStorage.setItem("pdfjs.history", "");
           // location.reload(); // 清空路由
           resolve();
         })