瀏覽代碼

预览按钮显示bug3286

zhouna 5 年之前
父節點
當前提交
f57411f50e
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/components/MainPage.vue

+ 6 - 1
src/components/MainPage.vue

@@ -249,7 +249,12 @@ export default {
       tmpArr = this[moduleName];
       tmpNowItem = tmpArr[this.num];
       this.type = -1;
-      tmpNowItem?tmpNowItem.show = false:'';      //最后一题时没有下一题
+      if(tmpNowItem){
+        tmpNowItem.show = false;
+      }else{//最后一题时没有下一题
+        this.showPreview=false;
+      }
+
       const keyIdx = this.moduleKeys.findIndex((i)=>i==this.activeTab);
       if(this.activeTab!==this.moduleKeys[0]&&this.num===0){     //取消上一阶段的最后一题时
         this.activeTab=this.moduleKeys[keyIdx-1];