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.
1 parent c7a9276 commit 9ca2b97Copy full SHA for 9ca2b97
src/components/base/upload-imgs/index.vue
@@ -821,7 +821,7 @@ export default {
821
let l = imgInfoList.length
822
if (this.isStable) {
823
// 固定数量模式, 按次序插入空项
824
- for (let i = 0, k = 1; i < max || k < l; i += 1) {
+ for (let i = 0, k = 1; i < max && k < l; i += 1) {
825
if (itemList[i].status === 'input') {
826
this.itemList[i] = createItem(imgInfoList[k])
827
k += 1
@@ -835,7 +835,7 @@ export default {
835
if (itemList[itemList.length - 1].status === 'input') {
836
this.itemList.pop()
837
}
838
- for (let i = 1; i < l; i += 1) {
+ for (let i = 1; i <= l; i += 1) {
839
this.itemList.push(createItem(imgInfoList[i]))
840
841
0 commit comments