refactor(client): specify global scope
This commit is contained in:
@ -45,9 +45,9 @@ const tick = () => {
|
||||
|
||||
onMounted(() => {
|
||||
tick();
|
||||
const intervalId = setInterval(tick, 1000 * 15);
|
||||
const intervalId = window.setInterval(tick, 1000 * 15);
|
||||
onUnmounted(() => {
|
||||
clearInterval(intervalId);
|
||||
window.clearInterval(intervalId);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user