Skip to content

Commit 7e86500

Browse files
committed
环境对比测试:解决开启机器学习时切换结果 前 显示的 Response 是 后 的
1 parent a6df6fc commit 7e86500

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

js/main.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7916,8 +7916,12 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
79167916

79177917
const otherErr = err
79187918
const rsp = App.removeDebugInfo(res.data)
7919+
const rspStr = JSON.stringify(rsp)
79197920
const tr = item.TestRecord || {}
7920-
tr[standardKey] = JSON.stringify(isMLEnabled ? JSONResponse.updateFullStandard({}, rsp, isMLEnabled) : rsp) // res.data
7921+
if (isMLEnabled) {
7922+
tr.response = rspStr
7923+
}
7924+
tr[standardKey] = isMLEnabled ? JSON.stringify(JSONResponse.updateFullStandard({}, rsp, isMLEnabled)) : rspStr // res.data
79217925
item.TestRecord = tr
79227926

79237927
App.request(false, type, apiUrl, Object.assign(constJson, {

0 commit comments

Comments
 (0)