mirror of
https://gitee.com/dromara/go-view.git
synced 2024-12-03 12:19:07 +08:00
fix: 解决预览序列化遗漏替换的位置
This commit is contained in:
parent
68b8809a1e
commit
d774a52c4f
@ -44,7 +44,7 @@ export const clearLocalStorage = (name: string) => {
|
||||
*/
|
||||
export const setSessionStorage = <T>(k: string, v: T) => {
|
||||
try {
|
||||
window.sessionStorage.setItem(k, JSON.stringify(v))
|
||||
window.sessionStorage.setItem(k, JSONStringify(v))
|
||||
} catch (error) {
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user