diff --git a/src/components/TestPanel.vue b/src/components/TestPanel.vue index fca1118..d0c37a8 100644 --- a/src/components/TestPanel.vue +++ b/src/components/TestPanel.vue @@ -483,6 +483,12 @@ export default { this.projectId = res.message.project[0].projectId } this.points = res.message.points; + + // 切换实训项目-标签页回到第一个位置 + if (this.points.length) { + this.$parent.workbench1 = '0'; + } + this.tableData = res.message.points; let arr1 = this.tableData; let result1 = arr1.map(e => e.judgmentPointsId);