Browse Source

Merge branch 'ETA_1.1.8'

hbchen 1 year ago
parent
commit
9183930f0b
1 changed files with 1 additions and 1 deletions
  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={}){
 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');
   // console.log(objectStorageType,'objectStorageType');
   // return 
   // return 
   if(!objectStorageType){
   if(!objectStorageType){