Skip to content

Commit 65e609d

Browse files
committed
增加hosts可选,修正返回参数字段类型显示异常
1 parent 495eaeb commit 65e609d

File tree

9 files changed

+330
-267
lines changed

9 files changed

+330
-267
lines changed

apidoc/config.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,15 @@ var config = {
1212
SHOW_API_METHOD: true
1313
},
1414
// 当字段无默认值时,使用字段类型为默认值
15-
USE_TYPE_DEFAULT_VALUE: true
15+
USE_TYPE_DEFAULT_VALUE: true,
16+
HOSTS: [
17+
// {
18+
// title: "本地测试",
19+
// host: "http://demo.apidoc.net.cn"
20+
// },
21+
// {
22+
// title: "正式环境",
23+
// host: "http://www.apidoc.net.cn"
24+
// },
25+
]
1626
};

apidoc/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>apidoc</title><script src=./config.js></script><link href=static/css/app.fca02634.css rel=preload as=style><link href=static/css/chunk-vendors.97045985.css rel=preload as=style><link href=static/js/app.5eb34bdd.js rel=preload as=script><link href=static/js/chunk-vendors.3d189a61.js rel=preload as=script><link href=static/css/chunk-vendors.97045985.css rel=stylesheet><link href=static/css/app.fca02634.css rel=stylesheet></head><body><noscript><strong>We're sorry but apidoc doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=static/js/chunk-vendors.3d189a61.js></script><script src=static/js/app.5eb34bdd.js></script></body></html>
1+
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>apidoc</title><script src=./config.js></script><link href=static/css/app.30ce2923.css rel=preload as=style><link href=static/css/chunk-vendors.97045985.css rel=preload as=style><link href=static/js/app.2597b033.js rel=preload as=script><link href=static/js/chunk-vendors.3d189a61.js rel=preload as=script><link href=static/css/chunk-vendors.97045985.css rel=stylesheet><link href=static/css/app.30ce2923.css rel=stylesheet></head><body><noscript><strong>We're sorry but apidoc doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=static/js/chunk-vendors.3d189a61.js></script><script src=static/js/app.2597b033.js></script></body></html>

apidoc/static/css/app.fca02634.css renamed to apidoc/static/css/app.30ce2923.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apidoc/static/js/app.2597b033.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apidoc/static/js/app.5eb34bdd.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/config.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,15 @@ var config = {
1212
SHOW_API_METHOD: true
1313
},
1414
// 当字段无默认值时,使用字段类型为默认值
15-
USE_TYPE_DEFAULT_VALUE: true
15+
USE_TYPE_DEFAULT_VALUE: true,
16+
HOSTS: [
17+
// {
18+
// title: "本地测试",
19+
// host: "http://demo.apidoc.net.cn"
20+
// },
21+
// {
22+
// title: "正式环境",
23+
// host: "http://www.apidoc.net.cn"
24+
// },
25+
]
1626
};

0 commit comments

Comments
 (0)