|
@@ -58,7 +58,8 @@
|
|
|
const fileList = ref([])
|
|
const fileList = ref([])
|
|
|
|
|
|
|
|
const deletePic = (event) => {
|
|
const deletePic = (event) => {
|
|
|
- fileList.value.splice(event.index, 1);
|
|
|
|
|
|
|
+ const index = typeof event === 'object' ? event.index : event
|
|
|
|
|
+ fileList.value.splice(index, 1);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 新增图片
|
|
// 新增图片
|