src/utils/oss/index.ts
@@ -1,15 +1,18 @@ import { BoleOss } from '@bole-core/core'; import { loadEnv } from '@build/index'; import AliOSS from 'ali-oss'; import * as userServices from '@/services/api/User'; import * as authServices from '@/services/api/auth'; export class OssManager { private static OssInstance: BoleOss; private static async getOssSTS() { return await userServices.getOssSTS({ showLoading: false, }); return await authServices.getAliyunOSSAcs( {}, { showLoading: false, } ); } public static async getOssInstance() {