实现swagger的代理请求和拿到返回结果并展示了

This commit is contained in:
暮光:城中城
2021-11-04 23:43:58 +08:00
parent 4487c138b2
commit 339a29e739
34 changed files with 3289 additions and 86 deletions

View File

@@ -25,7 +25,7 @@
emits: [],
setup(props, { attrs, slots, emit, expose}) {
let paramList = props.paramList;
let bodyParamObj = {};
let bodyParamObj = '';
let getChildren = paramObj => {
if (paramObj.children) {
let bodyParamObj = {};
@@ -43,8 +43,15 @@
bodyParamObj[item.name] = getChildren(item);
});
}
let bodyRowParam = ref(JSON.stringify(bodyParamObj, null, 4));
let bodyRowParam = ref('');
if (bodyParamObj) {
bodyRowParam.value = JSON.stringify(bodyParamObj, null, 4);
}
const getParam = () => {
return bodyRowParam.value;
}
return {
getParam,
bodyRowParam,
};
},