Browse Source

添加oss上传

zhangbiao 3 năm trước cách đây
mục cha
commit
eb018f553c

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

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