소스 검색

提交到资源库添加提示语

zq 2 일 전
부모
커밋
21eabcff3c
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/views/book/courseware/create/components/base/common/UploadFile.vue

+ 4 - 2
src/views/book/courseware/create/components/base/common/UploadFile.vue

@@ -475,14 +475,16 @@ export default {
       file.isEdit = !file.isEdit;
     },
 
-    //提交到资源库
+    // 提交到资源库
     addResource(file) {
       let data = {
         project_id: this.project_id,
         file_id: file.file_id,
       };
       SubmitFileToResourceStore(data)
-        .then((res) => {})
+        .then((res) => {
+          this.$message.success('操作成功!');
+        })
         .catch(() => {
           this.loading = false;
         });