fix: 优化 JSON 序列化无法处理函数的问题

This commit is contained in:
奔跑的面条
2023-01-09 11:37:57 +08:00
parent ec5bed5b13
commit c903b607df
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { getSessionStorage, fetchRouteParamsLocation, httpErrorHandle } from '@/utils'
import { getSessionStorage, fetchRouteParamsLocation, httpErrorHandle, JSONParse } from '@/utils'
import { ResultEnum } from '@/enums/httpEnum'
import { StorageEnum } from '@/enums/storageEnum'
import { ChartEditStorage } from '@/store/modules/chartEditStore/chartEditStore.d'
@@ -23,7 +23,7 @@ export const getSessionStorageInfo = async () => {
// 跳转未发布页
return { isRelease: false }
}
return { ...JSON.parse(content), id }
return { ...JSONParse(content), id }
} else {
httpErrorHandle()
}