Commit a869fcdc9bed8d33950432fc7bc6b13e51a0ba8f

Authored by fengwotao
1 parent b99749ea

pref:修改测试请求(get类型),先禁用Body

... ... @@ -92,10 +92,11 @@
92 92 const apiUrl = url.restfulFormat(params);
93 93 if (url.startsWith('ws') || url.startsWith('wss')) {
94 94 websocketRequest(params);
  95 + } else {
  96 + const resp = await otherHttpRequest(apiType, apiUrl.split('{?')[0], headers, params);
  97 + if (!resp) return;
  98 + testResult.value = JSON.stringify(resp);
95 99 }
96   - const resp = await otherHttpRequest(apiType, apiUrl.split('{?')[0], headers, params);
97   - if (!resp) return;
98   - testResult.value = JSON.stringify(resp);
99 100 };
100 101
101 102 //websocket请求
... ...