src/utils/storage.ts
@@ -1,4 +1,4 @@ import { accessSessionKey, getSessionKey, getUserNameKey, userNameKey } from './request'; import { accessSessionKey, getSessionKey, getUserNameKey, userNameKey,domainPrefix } from './request'; /** * window.localStorage 浏览器永久缓存 @@ -11,7 +11,7 @@ // 查看 v2.4.3版本更新日志 setKey(key: string) { // @ts-ignore return `${__NEXT_NAME__}:${key}`; return `${__NEXT_NAME__}:${domainPrefix}${key}`; }, // 设置永久缓存 set<T>(key: string, val: T, win = window) {