Skip to content

Commit 00853ae

Browse files
committed
fix: update the fix of "finish" event of statistic countdown
1 parent 4a1c057 commit 00853ae

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

components/statistic/Countdown.jsx

+1-6
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,8 @@ export default {
4747
startTimer() {
4848
if (this.countdownId) return;
4949
this.countdownId = window.setInterval(() => {
50-
const { value } = this.$props;
51-
const timestamp = getTime(value);
52-
53-
if (timestamp < Date.now()) {
54-
this.stopTimer();
55-
}
5650
this.$refs.statistic.$forceUpdate();
51+
this.syncTimer();
5752
}, REFRESH_INTERVAL);
5853
},
5954

0 commit comments

Comments
 (0)