diff --git a/src/components/ec_api/TabArea.vue b/src/components/ec_api/TabArea.vue index e6568b4..a90de5f 100644 --- a/src/components/ec_api/TabArea.vue +++ b/src/components/ec_api/TabArea.vue @@ -196,6 +196,12 @@ function handle_request_url() { // 发送api请求 function send_request() { + if (UserApiData.value.api[activeTab.value].format === 'json'){ + UserApiData.value.api[activeTab.value].response = '{"root": "root"}' + } + if (UserApiData.value.api[activeTab.value].format === 'html' || UserApiData.value.api[activeTab.value].format === 'xml'){ + UserApiData.value.api[activeTab.value].response = '' + } const data = handle_request_data() ec_api_send_request(data).then(res => { if (res.format === 'json') { @@ -351,7 +357,7 @@ const ace_options = { + theme="chrome" :options="ace_options" class="vue-ace-editor" :wrap="true" style="width: 1200px"/>