瀏覽代碼

修复考试不配置groupByUser参数,导致评阅页面切换试题按钮丢失

cyy 2 月之前
父節點
當前提交
029a3dbc31
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/platform/examination/question/judge.vue

+ 3 - 1
src/views/platform/examination/question/judge.vue

@@ -331,7 +331,9 @@ export default {
     const { tagData, tagName } = (await getSetting('examTag')) || {}
     const { tagData, tagName } = (await getSetting('examTag')) || {}
     if (tagData) {
     if (tagData) {
       this.groupByUser = tagData.groupByUser
       this.groupByUser = tagData.groupByUser
-      this.activeName = '答卷1'
+      if (this.groupByUser) {
+        this.activeName = '答卷1'
+      }
     }
     }
     this.loadData()
     this.loadData()
     // 监听键盘事件
     // 监听键盘事件