未验证 提交 6e1545b6 编写于 作者: M metersphere-bot 提交者: GitHub

fix: form-data请求体切换成文件上传无反应 (#1872)

Authored-by: Nchenjianxing <jianxing.chen@fit2cloud.com>
上级 89cf36f9
......@@ -39,7 +39,7 @@
</el-select>
</el-col>
<el-col class="item" v-if="item.type !== 'file'">
<el-col class="item" v-if="isActive && item.type !== 'file'">
<el-autocomplete
:disabled="isReadOnly"
size="small"
......@@ -64,7 +64,7 @@
</el-col>
<el-col v-if="item.type === 'file'" class="item">
<el-col v-if="isActive && item.type === 'file'" class="item">
<ms-api-body-file-upload :parameter="item"/>
</el-col>
......@@ -126,6 +126,7 @@
currentItem: null,
requireds: REQUIRED,
isSelectAll: true,
isActive: true
}
},
watch: {
......@@ -231,6 +232,7 @@
} else {
item.contentType = 'text/plain';
}
this.reload();
},
selectAll() {
this.parameters.forEach(item => {
......@@ -242,6 +244,12 @@
item.enable = false;
});
},
reload() {
this.isActive = false;
this.$nextTick(() => {
this.isActive = true;
});
}
},
created() {
if (this.parameters.length === 0 || this.parameters[this.parameters.length - 1].name) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册