实现swagger的代理请求和拿到返回结果并展示了
This commit is contained in:
@@ -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,
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user