Merge branch 'dev' into master-fetch-dev

This commit is contained in:
奔跑的面条
2023-02-09 16:24:19 +08:00
8 changed files with 44 additions and 16 deletions
+1 -1
View File
@@ -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
}