优化代码

This commit is contained in:
RuoYi
2023-11-30 09:37:36 +08:00
parent 42bb8f6445
commit 966a17123f
10 changed files with 76 additions and 84 deletions

View File

@ -168,7 +168,7 @@ export default {
// 删除图片
handleDelete(file) {
const findex = this.fileList.map(f => f.name).indexOf(file.name);
if(findex > -1) {
if (findex > -1) {
this.fileList.splice(findex, 1);
this.$emit("input", this.listToString(this.fileList));
}