This commit is contained in:
syuilo 2020-08-09 11:12:11 +09:00
parent a5a7f8a031
commit 5f1bcdc423
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export default defineComponent({
},
created() {
this.tick();
this.$watch('props.showMs', () => {
this.$watch(() => this.props.showMs, () => {
if (this.clock) clearInterval(this.clock);
this.clock = setInterval(this.tick, this.props.showMs ? 10 : 1000);
}, { immediate: true });