From 7d665ee664249a1dc47810854e7acd1316d239a0 Mon Sep 17 00:00:00 2001 From: ForeverSmiYng Date: Sat, 11 Jan 2025 16:59:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96JS=E9=80=9A=E8=BF=87=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=B1=9E=E6=80=A7=E4=B8=AD=E7=9A=84SQL=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=95=B0=E6=8D=AE=E5=BA=93=E7=9A=84=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JS通过字段属性中的SQL查询数据库.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JS通过字段属性中的SQL查询数据库.js b/JS通过字段属性中的SQL查询数据库.js index ce8d7c4..a5e2b3a 100644 --- a/JS通过字段属性中的SQL查询数据库.js +++ b/JS通过字段属性中的SQL查询数据库.js @@ -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;