Sfoglia il codice sorgente

图片上传强制返回https

Cen_J 1 mese fa
parent
commit
dd0a722d05
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/components/basic/image-upload/hooks.ts

+ 1 - 0
src/components/basic/image-upload/hooks.ts

@@ -32,6 +32,7 @@ export const useImageUploadHooks = () => {
       accessKeySecret,
       stsToken: securityToken,
       bucket: bucket,
+      protocol: 'https',
     });
     const result = await client.put(name, file);
     return result.url;