dusenyao 3 年之前
父節點
當前提交
0ffed44980
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/components/live/CurMaterial.vue

+ 4 - 0
src/components/live/CurMaterial.vue

@@ -178,6 +178,10 @@ export default {
     },
 
     finishMyMaterial() {
+      if (this.exam_answer.length === 0) {
+        this.$message.warning('请完成课件');
+        return;
+      }
       FinishMyMaterial({
         task_id: this.taskId,
         material_id: this.materialId,