Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

保存接口与取出数据格式不一致 #139

Open
yangg opened this issue May 17, 2024 · 2 comments
Open

保存接口与取出数据格式不一致 #139

yangg opened this issue May 17, 2024 · 2 comments

Comments

@yangg
Copy link

yangg commented May 17, 2024

保存的时候数据是数组,取出来是对象,而且 key 也不一样了,现在这是什么情况?
1.

{
"data": [{
"global":{...},
"layers":[...]
}]
}
  1. https://palxp.cn:8887/design/temp?id=1387
{
"data": {
"page":{...}
"widgets":[...]
}
}
@palxiao
Copy link
Owner

palxiao commented May 17, 2024

数据结构改变了,因为升级了多画板功能,旧版本是对象,新版本是数组,两套数据是兼容的。

@yangg
Copy link
Author

yangg commented May 20, 2024

list 接口返回数据是数组时,页面解析不了啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants