浏览代码

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

plg 5 月之前
父节点
当前提交
aa43d7bbb5
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);