fix(接口测试): 修复body保存本地上传文件失败的缺陷
--bug=1038152 --user=王孝刚 【接口测试】定义-调试-post请求-binary参数-接口和用例上传本地文件-保存后文件不显示 https://www.tapd.cn/55049933/s/1484499
This commit is contained in:
parent
28ca4251dd
commit
6e41a8e16e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue