Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 修复code问题
Browse files Browse the repository at this point in the history
JackySoft committed Sep 10, 2024
1 parent f094c64 commit 76517b1
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
@@ -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) {
2 changes: 1 addition & 1 deletion packages/materials/utils/handleApi.ts
Original file line number Diff line number Diff line change
@@ -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) {

0 comments on commit 76517b1

Please sign in to comment.