mirror of
https://gitee.com/dromara/go-view.git
synced 2025-08-06 22:11:16 +08:00
update src/views/chart/hooks/useSync.hook.ts.
修复项目数据保存时,chartEditStore.getStorageInfo未执行调用,保存的是函数字符串,导致数据保存错误 Signed-off-by: 叶建新 <1170392673@qq.com>
This commit is contained in:
parent
3d4384a6f8
commit
4ed9a5b50e
@ -322,7 +322,7 @@ export const useSync = () => {
|
||||
// 保存数据
|
||||
let params = new FormData()
|
||||
params.append('projectId', projectId)
|
||||
params.append('content', JSONStringify(chartEditStore.getStorageInfo || {}))
|
||||
params.append('content', JSONStringify(chartEditStore.getStorageInfo() || {}))
|
||||
const res= await saveProjectApi(params)
|
||||
|
||||
if (res && res.code === ResultEnum.SUCCESS) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user