zyp 2 周之前
父節點
當前提交
38ee21ccca
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/views/components/course/userCourseCatalogDetails.vue

+ 8 - 0
src/views/components/course/userCourseCatalogDetails.vue

@@ -811,6 +811,14 @@ export default {
       });
     },
     batchVideoSave(){
+      if (this.addBatchData.select.length===0){
+        this.$message({
+          message: '请选择视频!!',
+          type: 'warning'
+        });
+        return
+      }
+      console.log(this.addBatchData.select)
       this.addBatchData.form.ids = this.addBatchData.select;
       batchSaveVideo(this.addBatchData.form).then(response => {
         this.addBatchData.open = false;