Browse Source

fix(views): 修复定时器类型错误的问题

wangcong 2 tháng trước cách đây
mục cha
commit
ceff7682cf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/views/setup-protocol/WaitingRecognition.vue

+ 1 - 1
src/views/setup-protocol/WaitingRecognition.vue

@@ -15,7 +15,7 @@ let timer: number | undefined;
 
 onMounted(async () => {
   await new Promise<void>((resolve) => {
-    timer = setInterval(() => {
+    timer = window.setInterval(() => {
       updateProgress(resolve);
     }, 500);
   });