Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6208b75

Browse files
Java:更新 APIAuto
1 parent 402925f commit 6208b75

File tree

2 files changed

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

2 files changed

+5
-2
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@
490490
</div>
491491

492492
<!-- v-model 不允许调用方法 -->
493+
<template v-if="scripts[scriptType][scriptBelongId]">
493494
<textarea id="vScript" style="width: 100%;height: 100%;" wrap="off"
494495
v-model="scripts[scriptType][scriptBelongId][isPreScript ? 'pre' : 'post'].script"
495496
placeholder="// JavaScript 脚本
@@ -503,6 +504,7 @@
503504
// .. 逻辑代码
504505
">
505506
</textarea>
507+
</template>
506508
</div>
507509

508510
</div>

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@
858858
host: '',
859859
database: 'MYSQL', // 查文档必须,除非后端提供默认配置接口 // 用后端默认的,避免用户总是没有配置就问为什么没有生成文档和注释 'MYSQL',// 'POSTGRESQL',
860860
schema: 'sys', // 查文档必须,除非后端提供默认配置接口 // 用后端默认的,避免用户总是没有配置就问为什么没有生成文档和注释 'sys',
861-
server: 'http://apijson.cn:9090', // Chrome 90+ 跨域问题非常难搞,开发模式启动都不行了 'http://apijson.org:9090', //apijson.cn
861+
server: "http://localhost:8080",// 'http://apijson.cn:9090', // Chrome 90+ 跨域问题非常难搞,开发模式启动都不行了 'http://apijson.org:9090', //apijson.cn
862862
// server: 'http://47.74.39.68:9090', // apijson.org
863863
// project: 'http://apijson.cn:8080', // apijson.cn
864864
thirdParty: 'SWAGGER /v2/api-docs', //apijson.cn
@@ -3992,7 +3992,7 @@
39923992
scripts.global = ss = {}
39933993
}
39943994

3995-
var bs = ss['0']
3995+
var bs = ss['0']||{}
39963996
if (bs == null) {
39973997
ss['0'] = bs = {}
39983998
}
@@ -4680,6 +4680,7 @@
46804680
}
46814681
}
46824682

4683+
this.scriptBelongId = 0 // 解决可能的报错
46834684
this.scriptType = type
46844685
var bid = this.getCurrentScriptBelongId()
46854686

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /