Commit c12822b9 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化上传

parent b213c415
...@@ -211,9 +211,14 @@ export default { ...@@ -211,9 +211,14 @@ export default {
}, },
// 上传样表 // 上传样表
OnsuccessSamplePath(response, file, fileList) { OnsuccessSamplePath(response, file, fileList) {
this.samplePathFileList = fileList.slice(-1); if (response.code == 1) {
this.form.samplePath = response.url; this.samplePathFileList = fileList.slice(-1);
this.form.sampleName = response.fileName; this.form.samplePath = response.url;
this.form.sampleName = response.fileName;
} else {
let msg = response.msg || "上传失败";
this.$message.error(msg);
}
}, },
// 删除样表 // 删除样表
handleRemoveSamplePath() { handleRemoveSamplePath() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment