Commit 3eb382a756d88b4dea06ddcdee8e9bd31c25d879
1 parent
b6bc275a
fix: update time when old data play
Showing
1 changed file
with
1 additions
and
0 deletions
pages/index/index.js
@@ -45,6 +45,7 @@ Page({ | @@ -45,6 +45,7 @@ Page({ | ||
45 | }); | 45 | }); |
46 | // 播放过,使用本地文件减少请求,且从播放列表中移到最前 | 46 | // 播放过,使用本地文件减少请求,且从播放列表中移到最前 |
47 | if(played){ | 47 | if(played){ |
48 | + played.time = Date.now(); | ||
48 | app.globalData.setAudioList('delete', played.path); | 49 | app.globalData.setAudioList('delete', played.path); |
49 | app.globalData.setAudioList('add', played); | 50 | app.globalData.setAudioList('add', played); |
50 | return audio.src = played.path; | 51 | return audio.src = played.path; |