Explorar el Código

修改认知任务---返回后不触发清除定时器

plg hace 5 meses
padre
commit
aa43d7bbb5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/shapeIntuition_random.vue

+ 1 - 1
src/views/shapeIntuition_random.vue

@@ -113,7 +113,7 @@ export default {
     //拿到是练习测试还是正式测试
     this.init(this.formalTest);
   },
-  destroyed() {
+  unmounted() {
     clearInterval(this.myInterval);
     clearTimeout(this.timeOne);
     clearTimeout(this.timeTwo);