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

perf: 优化

parent 1b11ea55
......@@ -49,7 +49,9 @@
<el-form-item label="背景图片" prop="bigPath">
<YUpload
accept=".png,.gif,.jpeg,.jpg"
:limit="1"
list-type="picture-card"
:fileList="bigPathList"
v-model="form.bigPath"
></YUpload>
</el-form-item>
......@@ -129,6 +131,7 @@ export default {
loading: false,
inputVisible: false,
inputValue: "",
bigPathList: [],
form: {
areaName: "",
areaCode: "",
......@@ -206,16 +209,24 @@ export default {
} else {
this.form.tag = [];
}
if (this.form.bigPath) {
this.bigPathList = [
{
name: this.form.bigPath,
url: this.form.bigPath,
},
];
}
}, 10);
},
// 重置
handleRest() {
this.fileList = [];
this.bigPathList = [];
this.$resetForm("form");
},
// 关闭
handleClose() {
this.fileList = [];
this.bigPathList = [];
this.$resetForm("form");
this.Visible = false;
},
......
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