Showing
1 changed file
with
4 additions
and
3 deletions
| ... | ... | @@ -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请求 | ... | ... |