Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -158,12 +158,12 @@ Page({ | @@ -158,12 +158,12 @@ Page({ | ||
| 158 | console.log('qnevent',e.detail); | 158 | console.log('qnevent',e.detail); |
| 159 | let files=e.detail.data | 159 | let files=e.detail.data |
| 160 | if(e.detail.act=='uploadFail'){ | 160 | if(e.detail.act=='uploadFail'){ |
| 161 | - files[e.detail.fileCurrent].progress=Math.random() | 161 | + files[e.detail.fileCurrent].progress=Math.random().toFixed(2) |
| 162 | } | 162 | } |
| 163 | files.forEach(f=>{ | 163 | files.forEach(f=>{ |
| 164 | if(f.progress==100){ | 164 | if(f.progress==100){ |
| 165 | if(!f.remote || !f.remote.url){ | 165 | if(!f.remote || !f.remote.url){ |
| 166 | - f.progress=90+Math.random()*9 | 166 | + f.progress=(90+Math.random()*9).toFixed(2) |
| 167 | } | 167 | } |
| 168 | } | 168 | } |
| 169 | }) | 169 | }) |
-
Please register or login to post a comment