fix(接口测试): 修复body保存本地上传文件失败的缺陷

--bug=1038152 --user=王孝刚
【接口测试】定义-调试-post请求-binary参数-接口和用例上传本地文件-保存后文件不显示
https://www.tapd.cn/55049933/s/1484499
This commit is contained in:
wxg0103 2024-03-30 13:52:58 +08:00 committed by Craftsman
parent 28ca4251dd
commit 6e41a8e16e
1 changed files with 0 additions and 5 deletions

View File

@ -159,11 +159,6 @@
async function handleFileChange(files: MsFileItem[], file?: MsFileItem) {
try {
if (file?.local && file.file && props.uploadTempFileApi) {
if (files.length === 0) {
innerParams.value.binaryBody.file = undefined;
emit('change');
return;
}
//
appStore.showLoading();
const res = await props.uploadTempFileApi(file.file);