版本升级1.0.3,swagger文档优化
This commit is contained in:
@@ -58,9 +58,9 @@
|
||||
支持多项目同时展示,多种文档目录的展示方案,多种自定义配置,满足各种使用习惯。
|
||||
本项目是完全从头写的,所以有任何属性未解析到、UI上有何建议都能及时处理得到。
|
||||
使用中您有任何的意见和建议都可到源码地址处反馈哦!<br/>
|
||||
源码地址:<a target="_blank" href="https://gitee.com/zyplayer/zyplayer-doc">zyplayer-doc-swagger</a>(还有其他很多功能哦),
|
||||
前端框架:<a target="_blank" href="http://zui.sexy">zui</a>(很不错),
|
||||
我的网站:<a target="_blank" href="http://kongjianzhou.com">空间轴</a>、<a target="_blank" href="http://zyplayer.com">自由发挥</a>(都已很久未维护)
|
||||
源码地址:<a target="_blank" href="https://gitee.com/zyplayer/zyplayer-doc">zyplayer-doc-swagger</a>,
|
||||
前端框架:<a target="_blank" href="http://zui.sexy">zui</a>,
|
||||
我的网站:<a target="_blank" href="http://kongjianzhou.com">空间轴</a>、<a target="_blank" href="http://zyplayer.com">自由发挥</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -127,8 +127,18 @@
|
||||
app.oldLocation = item.location;
|
||||
app.addNewDocumentInput = item.location;
|
||||
app.rewriteDomainUrl = item.rewriteDomainUrl;
|
||||
app.addNewSwaggerJson = "";
|
||||
app.openVisit = (item.openVisit == 1);
|
||||
$('#addNewDocumentModal').modal({moveable: true});
|
||||
if (item.location.indexOf('proxy-api-docs') > 0) {
|
||||
var docId = item.location.substring(item.location.indexOf("?id=") + 4);
|
||||
// 获取文档内容
|
||||
ajaxTemp(urlBase + "swagger-mg-ui/document/proxy-api-docs", "get", "text", {id: docId}, function (json) {
|
||||
app.addNewSwaggerJson = json;
|
||||
$('#addNewDocumentModal').modal({moveable: true});
|
||||
});
|
||||
} else {
|
||||
$('#addNewDocumentModal').modal({moveable: true});
|
||||
}
|
||||
},
|
||||
addNewDocument: function(){
|
||||
app.openVisit = false;
|
||||
|
||||
Reference in New Issue
Block a user