fix (接口自动化): 修复插件附件上传失效问题

This commit is contained in:
fit2-zhao 2021-10-12 18:07:47 +08:00 committed by fit2-zhao
parent 3fe9a65c9b
commit 41f8546dae
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ export function saveScenario(url, scenario, scenarioDefinition, _this,success) {
if (_this.$store.state.pluginFiles && _this.$store.state.pluginFiles.length > 0) { if (_this.$store.state.pluginFiles && _this.$store.state.pluginFiles.length > 0) {
_this.$store.state.pluginFiles.forEach(fileItem => { _this.$store.state.pluginFiles.forEach(fileItem => {
if (fileItem.file) { if (fileItem.file) {
scenario.bodyFileRequestIds.push(fileItem.file.id); scenario.bodyFileRequestIds.push(fileItem.file.uid);
bodyFiles.push(fileItem.file); bodyFiles.push(fileItem.file);
} }
}); });