瀏覽代碼

修改地址

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