|
@@ -96,6 +96,8 @@ export const onFileUpload = ({
|
|
|
});
|
|
|
} else {
|
|
|
const cos = new COS({
|
|
|
+ Domain: 'https://oss.dayaedu.com',
|
|
|
+ Protocol: 'https',
|
|
|
// getAuthorization 必选参数
|
|
|
getAuthorization: async (options, callback: any) => {
|
|
|
callback({ Authorization: data.signature });
|
|
@@ -174,6 +176,8 @@ export const onOnlyFileUpload = async (action: string, params: any) => {
|
|
|
let file = '';
|
|
|
let errorObj: any = null;
|
|
|
const cos = new COS({
|
|
|
+ Domain: 'https://oss.dayaedu.com',
|
|
|
+ Protocol: 'https',
|
|
|
// getAuthorization 必选参数
|
|
|
getAuthorization: async (options, callback: any) => {
|
|
|
callback({ Authorization: params.signature });
|