Skip to content

Commit

Permalink
fix(Album): 修复图片数量为4张时图片换行问题
Browse files Browse the repository at this point in the history
  • Loading branch information
YYJeffrey committed Jan 30, 2022
1 parent 2527db3 commit 3ea1aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/album/index.js
Expand Up @@ -100,7 +100,7 @@ Component({

if (!this.data.customRowNumber) {
let urlLength = this.data.showUrls.length;
if (urlLength > 1 && urlLength < 5) {
if (urlLength > 1 && urlLength < 5 && urlLength !== 3) {
this.setData({
everyRowNumber: 2
});
Expand Down

0 comments on commit 3ea1aa5

Please sign in to comment.