Commit 8b9cd3b8 by 杨明

fixed

1 parent f3e11dab
......@@ -83,7 +83,7 @@
<div class="mask">
<h3>
<img slot="reference" src="@/assets/material/view.png" alt="" @click="viewVideo" />
<img v-if="!notDisplayProperties" class="del-img" src="@/assets/material/dele.png" alt="" @click="deleteImg('videoUrl')" />
<img v-if="!notDisplayProperties" class="del-img" src="@/assets/material/dele.png" alt="" @click="deleteImg(['videoUrl', 'coverUrl'])" />
</h3>
</div>
</div>
......@@ -742,6 +742,12 @@ export default {
},
// 删除上传图片
deleteImg(params, content) {
if (Array.isArray(params)) {
params.forEach(val => {
this.materialAddForm[val] = ''
})
return
}
if (Array.isArray(this.materialAddForm[params])) {
this.materialAddForm[params] = this.materialAddForm[params].filter(item => item !== content)
} else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!