Browse Source

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

plg 5 months ago
parent
commit
aa43d7bbb5
1 changed files with 1 additions and 1 deletions
  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);