优化JS通过字段属性中的SQL查询数据库的输出结果

This commit is contained in:
ForeverSmiYng 2025-01-11 16:59:52 +08:00
parent 6083594c27
commit 7d665ee664

View File

@ -27,7 +27,7 @@ async function selectByFieldPropSyn(SFP_myJSON) {
try {
let postObj = JSON.parse(SFP_myJSON);
const response = await $.post("/api/workflow/linkage/reqFieldSqlResult", postObj);
return response;
return JSON.parse(response);
} catch (error) {
console.error('Error:', error);
return undefined;