Skip to content

Commit f52aae1

Browse files
committed
Java: MultiDataSource 解决内置 APIAuto 回归测试单用例执行脚本报错
1 parent ed3e02b commit f52aae1

File tree

1 file changed

+5
-5
lines changed
  • APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/api/js

1 file changed

+5
-5
lines changed

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/api/js/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6478,6 +6478,8 @@ https://github.com/Tencent/APIJSON/issues
64786478
const wait = wait_ != null ? wait_ : (this.wait || 0)
64796479
var retry = retry_ != null ? retry_ : (this.retry || 0)
64806480

6481+
var evalPostScript = function () {}
6482+
64816483
const onHttpResponse = function (res) {
64826484
App.currentHttpResponse = res
64836485
clearTimeout(errHandler)
@@ -6602,8 +6604,6 @@ https://github.com/Tencent/APIJSON/issues
66026604
return true
66036605
}
66046606

6605-
var evalPostScript = function () {}
6606-
66076607
var sendRequest = function (isAdminOperation, method, type, url, req, header, callback) {
66086608
var hs = ""
66096609
if (isDelegate && header != null) {
@@ -10264,8 +10264,8 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
1026410264
const header = hdr
1026510265

1026610266
const caseScript = {
10267-
pre: (item['Script:pre'] || {}).script,
10268-
post: (item['Script:post'] || {}).script
10267+
pre: (item['Script:pre'] || {}),
10268+
post: (item['Script:post'] || {})
1026910269
}
1027010270

1027110271
const method = document.method
@@ -10318,7 +10318,7 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
1031810318
}, caseScript)
1031910319

1032010320
}, caseScript)
10321-
}, caseScript.pre, {
10321+
}, (caseScript.pre || {}).script, {
1032210322
list: list,
1032310323
allCount: allCount,
1032410324
index: index,

0 commit comments

Comments
 (0)