@@ -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();