mo 1 년 전
부모
커밋
6503c75766
2개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 4
      src/components/timerMeter/components/countdown.tsx
  2. 1 1
      src/components/timerMeter/index.tsx

+ 3 - 4
src/components/timerMeter/components/countdown.tsx

@@ -134,11 +134,10 @@ export default defineComponent({
     const onReset = () => {
 
       suspendNum()
-      nextTick(() => {
-
-        count.value = 0
+      count.value = 0
+      setTimeout(() => {
         init()
-      })
+      }, 300)
 
     }
     onMounted(() => {

+ 1 - 1
src/components/timerMeter/index.tsx

@@ -7,7 +7,7 @@ import Positive from './components/positive';
 export default defineComponent({
   name: 'data-module',
   setup() {
-    const activeTab = ref('countdown');  //countdown
+    const activeTab = ref('positive');  //countdown
     const route = useRoute();
     // onMounted(() => {
     // })