格式化html

This commit is contained in:
Harvey committed 2019-11-27 16:32:22 +08:00
1 parent 1d153e9a8d
commit 2cf7905d58
1 file changed
+2 -2
+2 -2
View File
@@ -6,8 +6,8 @@ export default function time(option) {
mounted: $control => { mounted: $control => {
function getTime() { function getTime() {
const newTime = `${secondToTime(art.player.currentTime)} / ${secondToTime(art.player.duration)}`; const newTime = `${secondToTime(art.player.currentTime)} / ${secondToTime(art.player.duration)}`;
if (newTime !== $control.innerHTML) { if (newTime !== $control.innerText) {
$control.innerHTML = newTime; $control.innerText = newTime;
} }
} }