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