|
@@ -55,6 +55,7 @@
|
|
|
token:token
|
|
|
}"
|
|
|
:action="uploadUrl"
|
|
|
+ :on-change="()=>{this.$refs.ruleForm.validateField('jsonFile')}"
|
|
|
:before-upload="handleChange"
|
|
|
:file-list="ruleForm.jsonFile">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
@@ -426,6 +427,8 @@ export default {
|
|
|
this.$message.error("请上传文件名称为version.json");
|
|
|
return false;
|
|
|
}
|
|
|
+ this.ruleForm.jsonFile = [file]
|
|
|
+
|
|
|
},
|
|
|
async uploadSectionFile(params) {
|
|
|
const file = params.file,
|