소스 검색

修改地址

lex 1 년 전
부모
커밋
72bc31b0ee
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/helpers/oss-file-upload.ts

+ 4 - 0
src/helpers/oss-file-upload.ts

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