Selaa lähdekoodia

对象存储器默认走oss

hbchen 1 vuosi sitten
vanhempi
commit
1f1f58796b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/utils/common.js

+ 1 - 1
src/utils/common.js

@@ -64,7 +64,7 @@ export function getUrlParams(str=window.location.href,key) {
 
 // 上传文件 直接走对象存取服务器
 export function uploadFileDirect(objectStorageClient,file,temName,options={}){
-  const objectStorageType= (objectStorageClient || JSON.parse(localStorage.getItem('dynamicOutLinks')).ObjectStorageClient)
+  const objectStorageType= (objectStorageClient || JSON.parse(localStorage.getItem('dynamicOutLinks')).ObjectStorageClient || 'oss')
   // console.log(objectStorageType,'objectStorageType');
   // return 
   if(!objectStorageType){