先提交保留一下

This commit is contained in:
daihh
2022-06-03 10:36:26 +08:00
parent 5b9ce7fa75
commit cce3e21837
14 changed files with 88 additions and 32 deletions

View File

@@ -7,14 +7,16 @@ export const deepCopy = (obj) => {
/**文件的基础路径*/
export function getFileBaseUrl() {
const protocol='https:'==window.location.protocol;
let protocol=window.location.protocol;
let configPath=process.env.VUE_APP_FILE_BASE_URL;
let baseUrl='';
if(configPath.startsWith('http')){
return configPath;
baseUrl = configPath;
}else{
let domain = window.location.host;
return protocol+='//'+domain+configPath;
baseUrl = protocol+'//'+domain+configPath;
}
return baseUrl;
}
/**