Skip to content

Commit

Permalink
fix: 修复code问题
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft committed Sep 10, 2024
1 parent f094c64 commit 76517b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/editor/src/packages/utils/handleApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const handleApi = async (
} else if (typeof api.sourceField === 'string' && api.sourceField) {
renderData = get(data, api.sourceField);
}
return { code, data: renderData, originData: data, msg };
return { code: 0, data: renderData, originData: data, msg };
} else {
// 解析动态变量
if (api.name?.value) {
Expand Down
2 changes: 1 addition & 1 deletion packages/materials/utils/handleApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const handleApi = async (
} else if (typeof api.sourceField === 'string' && api.sourceField) {
renderData = get(data, api.sourceField);
}
return { code, data: renderData, originData: data, msg };
return { code: 0, data: renderData, originData: data, msg };
} else {
// 解析动态变量
if (api.name?.value) {
Expand Down

0 comments on commit 76517b1

Please sign in to comment.