swap notice and seek event (#899)

This commit is contained in:
WeidiDeng authored and GitHub committed 2025-02-02 17:27:51 +08:00
1 parent a8458b050b
commit ff10f4f0a6
1 file changed
+1 -1
+1 -1
View File
@@ -6,10 +6,10 @@ export default function seekMix(art) {
def(art, 'seek', {
set(time) {
art.currentTime = time;
art.emit('seek', art.currentTime);
if (art.duration) {
notice.show = `${secondToTime(art.currentTime)} / ${secondToTime(art.duration)}`;
}
art.emit('seek', art.currentTime);
},
});