Browse Source

智能助手判断

lzw 8 tháng trước cách đây
mục cha
commit
645b544af1
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      src/components/pages/test/checkAi/aiLeader.vue

+ 5 - 1
src/components/pages/test/checkAi/aiLeader.vue

@@ -1371,8 +1371,12 @@ export default {
       }
     },
     addContent() {
-      if (this.courseText.trim().length == 0)
+      if(this.fileList.length == 0){
+        return this.$message.error("请选择表单")
+      } else if (this.courseText.trim().length == 0){
         return this.$message.error("请输入内容");
+      }
+      
       let message = this.courseText;
       if (this.courseText) {
         let msg = ``;