提交 19d70e85 authored 作者: wangyizheng's avatar wangyizheng

修复编辑图片的bug

上级 25874920
...@@ -195,6 +195,7 @@ ...@@ -195,6 +195,7 @@
:on-success="uploadSuccess2" :on-success="uploadSuccess2"
:on-error="uploadError2" :on-error="uploadError2"
:data="{ type: 'image' }" :data="{ type: 'image' }"
:file-list="updateFileList"
:disabled="urlDisabled"> :disabled="urlDisabled">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</el-upload> </el-upload>
...@@ -254,7 +255,8 @@ export default { ...@@ -254,7 +255,8 @@ export default {
pid: 0, pid: 0,
order: 0, order: 0,
url: '' url: ''
} },
updateFileList: []
} }
}, },
mounted() { mounted() {
...@@ -404,6 +406,9 @@ export default { ...@@ -404,6 +406,9 @@ export default {
this.updateForm.name = opera.row.name this.updateForm.name = opera.row.name
this.updateForm.tag = opera.row.tag this.updateForm.tag = opera.row.tag
this.updateForm.url = opera.row.url this.updateForm.url = opera.row.url
if (opera.row.url) {
this.updateFileList = [{ url: opera.row.url }]
}
this.updateForm.order = opera.row.order this.updateForm.order = opera.row.order
this.editCategoryDialogFormVisible = true this.editCategoryDialogFormVisible = true
break break
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论