GitLab
Sign in
zooble
/
text-to-audio
Back to Group
Project
Activity
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code »
Commit
3eb382a756d88b4dea06ddcdee8e9bd31c25d879
Authored by
xwenliang
2022-12-05 12:16:53 +0800
1 parent
b6bc275a
fix: update time when old data play
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
pages/index/index.js
pages/index/index.js
View file @
3eb382a
...
...
@@ -45,6 +45,7 @@ Page({
45
45
});
46
46
// 播放过,使用本地文件减少请求,且从播放列表中移到最前
47
47
if(played){
48
+ played.time = Date.now();
48
49
app.globalData.setAudioList('delete', played.path);
49
50
app.globalData.setAudioList('add', played);
50
51
return audio.src = played.path;
...
...