Skip to content

Commit dec0422

Browse files
committed
Java:MultiDataSource 更新 APIAuto
1 parent cd83258 commit dec0422

File tree

2 files changed

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

2 files changed

+5
-4
lines changed

Diff for: APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/js/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -6742,6 +6742,7 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
67426742

67436743
autoTest: function(callback, delayTime, isTest, rawReq, setting) {
67446744
this.autoTestCallback = callback
6745+
this.currentAccountIndex = -1
67456746

67466747
if (delayTime == null) {
67476748
delayTime = 0

Diff for: APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/js/server.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ const app = new Koa();
6666
app.use(async ctx => {
6767
console.log(ctx)
6868

69-
if (ctx.path == '/start' || (isLoading != true && ctx.path == '/')) {
70-
if (isLoading && ctx.path == '/start') {
69+
if (ctx.path == '/test/start' || (isLoading != true && ctx.path == '/test')) {
70+
if (isLoading && ctx.path == '/test/start') {
7171
ctx.body = 'Already started auto testing in node, please wait for minutes...';
7272
ctx.status = 200
7373
return
@@ -101,10 +101,10 @@ app.use(async ctx => {
101101
ctx.body = 'Auto testing in node...';
102102

103103
// setTimeout(function () { // 延迟无效
104-
ctx.redirect('/status');
104+
ctx.redirect('/test/status');
105105
// }, 1000)
106106
}
107-
else if (ctx.path == '/status' || (isLoading && ctx.path == '/')) {
107+
else if (ctx.path == '/test/status' || (isLoading && ctx.path == '/test')) {
108108
update();
109109
if (isLoading) {
110110
// ctx.response.header['refresh'] = "1";

0 commit comments

Comments
 (0)