222
schangxiang@126.com
2025-04-30 9bec4dcae002f36aa23231da11cb03a156b40110
PipeLineLems/web/src/utils/storage.ts
@@ -41,8 +41,13 @@
  // 获取临时缓存
  get(key: string) {
    const value: null | string = window.sessionStorage.getItem(key)
    try {
    if (!value) return null
    return JSON.parse(value)
    } catch (error) {
      return value
    }
  },
  // 移除临时缓存
  remove(key: string) {
@@ -54,7 +59,4 @@
  },
}
export {
  Local,
  Session
}
export { Local, Session }