Skip to content

Commit 452f1af

Browse files
committed
fix: remove set cookie
1 parent ac8a7aa commit 452f1af

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/utils/storage.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ export const Local = {
4242
export const Session = {
4343
// 设置临时缓存
4444
set(key: string, val: any) {
45-
if (key === TOKEN_KEY) {
46-
Cookies.set(key, val);
47-
}
4845
window.sessionStorage.setItem(key, JSON.stringify(val));
4946
},
5047
// 获取临时缓存

0 commit comments

Comments
 (0)