瀏覽代碼

提交到资源库添加提示语

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;
         });