Skip to content

Commit 728398e

Browse files
committed
APIAuto:AI Agent:解决刷新网页未自动使用自定义模型
1 parent e3d96fe commit 728398e

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@
11621162
<script src="md/lib/jquery.flowchart.min.js"></script>
11631163

11641164
<script src="md/editormd.js"></script>
1165-
<script src="https://registry.npmmirror.com/page-agent/1.10.0/files/dist/iife/page-agent.demo.js?autoInit=false" crossorigin="true"></script>
1165+
<script src="https://registry.npmmirror.com/page-agent/1.10.0/files/dist/iife/page-agent.demo.js" crossorigin="true"></script>
11661166

11671167
</body>
11681168
</html>

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14946,6 +14946,12 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
1494614946
}
1494714947
}
1494814948

14949+
if (this.isAgentEnabled) {
14950+
setTimeout(function () {
14951+
App.initPageAgent(true)
14952+
}, 3000)
14953+
}
14954+
1494914955
var rawReq = getRequestFromURL()
1495014956
if (rawReq == null || (StringUtil.isEmpty(rawReq.type, true) && StringUtil.isEmpty(rawReq.reportId, true))) {
1495114957
this.transfer()
@@ -15071,13 +15077,6 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
1507115077

1507215078
App.handleTestArg(hasTestArg, rawReq, delayTime)
1507315079
}, 2000)
15074-
15075-
if (this.isAgentEnabled) {
15076-
setTimeout(function () {
15077-
App.initPageAgent(true)
15078-
}, 3000)
15079-
}
15080-
1508115080
}
1508215081

1508315082

0 commit comments

Comments
 (0)