From 6208b755d795d510427bee9552d4d8cbe18ac8fe Mon Sep 17 00:00:00 2001 From: TommyLemon <1184482681@qq.com> Date: Tue, 3 Jan 2023 21:16:50 +0800 Subject: [PATCH] =?UTF-8?q?Java=EF=BC=9A=E6=9B=B4=E6=96=B0=20APIAuto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/index.html | 2 ++ .../src/main/resources/static/js/main.js | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/index.html b/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/index.html index 65bf3bdd..837c987c 100755 --- a/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/index.html +++ b/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/index.html @@ -490,6 +490,7 @@ + diff --git a/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/js/main.js b/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/js/main.js index 123b3df8..c5889ebf 100755 --- a/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/js/main.js +++ b/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/js/main.js @@ -858,7 +858,7 @@ host: '', database: 'MYSQL', // 查文档必须,除非后端提供默认配置接口 // 用后端默认的,避免用户总是没有配置就问为什么没有生成文档和注释 'MYSQL',// 'POSTGRESQL', schema: 'sys', // 查文档必须,除非后端提供默认配置接口 // 用后端默认的,避免用户总是没有配置就问为什么没有生成文档和注释 'sys', - server: 'http://apijson.cn:9090', // Chrome 90+ 跨域问题非常难搞,开发模式启动都不行了 'http://apijson.org:9090', //apijson.cn + server: "http://localhost:8080", // 'http://apijson.cn:9090', // Chrome 90+ 跨域问题非常难搞,开发模式启动都不行了 'http://apijson.org:9090', //apijson.cn // server: 'http://47.74.39.68:9090', // apijson.org // project: 'http://apijson.cn:8080', // apijson.cn thirdParty: 'SWAGGER /v2/api-docs', //apijson.cn @@ -3992,7 +3992,7 @@ scripts.global = ss = {} } - var bs = ss['0'] + var bs = ss['0'] || {} if (bs == null) { ss['0'] = bs = {} } @@ -4680,6 +4680,7 @@ } } + this.scriptBelongId = 0 // 解决可能的报错 this.scriptType = type var bid = this.getCurrentScriptBelongId()