mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
修复文档显示BUG
This commit is contained in:
@@ -183,7 +183,13 @@ layui.config({
|
||||
function buildExample(parameter) {
|
||||
var refs = parameter.refs;
|
||||
if (refs) {
|
||||
return '{' + buildResult(refs) + '}';
|
||||
// {...}
|
||||
var content = '{' + buildResult(refs) + '}';
|
||||
if (parameter.type == 'array') {
|
||||
// [{...}]
|
||||
content = '[' + content + ']';
|
||||
}
|
||||
return content;
|
||||
} else {
|
||||
return '\"' + parameter.example + '\"';
|
||||
}
|
||||
|
Reference in New Issue
Block a user