Kaynağa Gözat

修改地址

lex 1 yıl önce
ebeveyn
işleme
72bc31b0ee
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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 });