We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 85f76c9 + 3759713 commit ff03afeCopy full SHA for ff03afe
src/components/base/upload-imgs/index.vue
@@ -175,7 +175,7 @@ function createItem(data = null, oldData = {}) {
175
}
176
177
// 存在id, 说明是传入已存在数据
178
- item.id = data.id
+ item.id = data.id || createId()
179
item.imgId = data.imgId || item.imgId
180
item.src = data.src || item.src
181
item.display = data.display || item.display
0 commit comments