mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 排除反序列化函数的问题,规范事件类型代码
This commit is contained in:
@@ -57,7 +57,7 @@ export const setSessionStorage = <T>(k: string, v: T) => {
|
||||
export const getSessionStorage: (k: string) => any = (k: string) => {
|
||||
const item = window.sessionStorage.getItem(k)
|
||||
try {
|
||||
return item ? JSON.parse(item) : item
|
||||
return item ? JSONParse(item) : item
|
||||
} catch (err) {
|
||||
return item
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user