Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -12,7 +12,7 @@ Component({ | @@ -12,7 +12,7 @@ Component({ | ||
| 12 | }, | 12 | }, |
| 13 | attached(){ | 13 | attached(){ |
| 14 | let peoplelist=[] | 14 | let peoplelist=[] |
| 15 | - for(let i=0;i<=Math.ceil((30-4)/5);i++){ | 15 | + for(let i=0;i<Math.ceil((30-4)/5);i++){ |
| 16 | peoplelist.push({ | 16 | peoplelist.push({ |
| 17 | list:[] | 17 | list:[] |
| 18 | }) | 18 | }) |
| @@ -28,6 +28,7 @@ Component({ | @@ -28,6 +28,7 @@ Component({ | ||
| 28 | this.setData({ | 28 | this.setData({ |
| 29 | peoplelist:peoplelist | 29 | peoplelist:peoplelist |
| 30 | }) | 30 | }) |
| 31 | + console.log(peoplelist) | ||
| 31 | }, | 32 | }, |
| 32 | ready(){ | 33 | ready(){ |
| 33 | this.editpeoplelist(this.data.count); | 34 | this.editpeoplelist(this.data.count); |
-
Please register or login to post a comment