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