Commit f7f39238 authored by jiaxu.yan's avatar jiaxu.yan

feat: 补充删除方法

parent 1180e06c
...@@ -201,6 +201,9 @@ export default { ...@@ -201,6 +201,9 @@ export default {
selectFile(e) { selectFile(e) {
this.model.url = e this.model.url = e
}, },
delFile(index) {
this.model.url.splice(index, 1)
},
isImageFile(filename) { isImageFile(filename) {
/** /**
* 判断文件名是否对应于常见的图片格式。 * 判断文件名是否对应于常见的图片格式。
......
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