Commit 042a50d5 by zhangleyuan

feat:删除无用代码

parent ba92d52e
/* /*
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2020-10-27 18:53:43 * @Date: 2020-10-27 18:53:43
* @LastEditors: 吴文洁 * @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-21 17:42:22 * @LastEditTime: 2021-01-05 14:17:13
* @Description: * @Description:
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -11,17 +11,17 @@ import Service from '@/common/js/service'; ...@@ -11,17 +11,17 @@ import Service from '@/common/js/service';
class Upload { class Upload {
static uploadBlobToOSS(Blob: any, name: string, dataType: string = 'url') { static uploadBlobToOSS(Blob: any, name: string, dataType: string = 'url') {
const { instId } = window.currentUserInstInfo; // const { instId } = window.currentUserInstInfo;
return Service.MFS('anon/mfs/webTokenWithAccessUrl', { // return Service.MFS('anon/mfs/webTokenWithAccessUrl', {
instId, // instId,
resourceName: name, // resourceName: name,
}).then((res) => { // }).then((res) => {
const signInfo = res.result; // const signInfo = res.result;
const { url } = res.result // const { url } = res.result
return this.uploadBlobToNewOSS(Blob, name, signInfo.signatureVO || signInfo).then(() => { // return this.uploadBlobToNewOSS(Blob, name, signInfo.signatureVO || signInfo).then(() => {
return dataType === 'url' ? url : signInfo // return dataType === 'url' ? url : signInfo
}); // });
}) // })
}; };
static uploadBlobToNewOSS(Blob: any, name: string, signInfo: any) { static uploadBlobToNewOSS(Blob: any, name: string, signInfo: any) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment