fix(接口测试): 修复接口的响应内容上传文件不显示的缺陷
--bug=1037843 --user=王孝刚 【接口定义】-响应内容-响应体设置为 binary,保存后不展示文件 https://www.tapd.cn/55049933/s/1484550
This commit is contained in:
parent
94d3c0db07
commit
813c29a2d3
|
@ -363,15 +363,9 @@
|
|||
}
|
||||
});
|
||||
|
||||
async function handleFileChange(files: MsFileItem[]) {
|
||||
if (!props.uploadTempFileApi) return;
|
||||
if (files.length === 0) {
|
||||
activeResponse.value.binaryBody.file = undefined;
|
||||
emit('change');
|
||||
return;
|
||||
}
|
||||
async function handleFileChange() {
|
||||
try {
|
||||
if (fileList.value[0]?.local && fileList.value[0].file) {
|
||||
if (fileList.value[0]?.local && fileList.value[0].file && props.uploadTempFileApi) {
|
||||
appStore.showLoading();
|
||||
const res = await props.uploadTempFileApi(fileList.value[0].file);
|
||||
activeResponse.value.body.binaryBody.file = {
|
||||
|
|
Loading…
Reference in New Issue