Browse Source

添加oss上传

zhangbiao 3 years ago
parent
commit
eb018f553c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/components/tinymce/TinymceEditor.vue

+ 1 - 2
src/components/tinymce/TinymceEditor.vue

@@ -173,17 +173,16 @@ export default {
                 // 填写Bucket名称。
                 bucket: bucket
               });
-
               // 上传oss
               try {
                 client.put(ossPath + file.name, file).then(res => {
                   console.log(res);
+                  callback(res.url);
                 });
               } catch (e) {
                 console.error(e);
               }
               // 回调
-              callback("http://vfx.mtime.cn/Video/2019/03/21/mp4/190321153853126488.mp4");
             });
           };
           input.click();