src/views/fysp/check/ProCheck.vue
@@ -34,12 +34,13 @@
          <CompProblemCard
            :key="i"
            v-for="(p, i) in curProList"
            :index="i + 1"
            :index="i"
            :problem="p"
            :subtask="curSubtask.data"
            :topTask="topTask"
            @submit="updateSubtask"
            @check="handleProblemCheck"
            @delete="handleProblemDelete"
          ></CompProblemCard>
        </div>
        <el-empty v-else description="暂无问题" v-loading="mainLoading" />
@@ -273,6 +274,10 @@
      this.curSubtask.data.changeNum = status.changeNum;
      this.curSubtask.data.changeCheckedNum = status.changeCheckedNum;
      this.curSubtask.type = ProCheckProxy.getSubtaskType(this.curSubtask.data);
    },
    // 删除问题
    handleProblemDelete(index) {
      this.curProList.splice(index, 1);
    }
  },
  mounted() {}