mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 16:22:57 +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) => {
|
export const setSessionStorage = <T>(k: string, v: T) => {
|
||||||
try {
|
try {
|
||||||
window.sessionStorage.setItem(k, JSON.stringify(v))
|
window.sessionStorage.setItem(k, JSONStringify(v))
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user