多环境测试

This commit is contained in:
daihh
2022-06-03 11:14:17 +08:00
parent 476d2e9f99
commit ba622ba174
8 changed files with 34 additions and 21 deletions

View File

@@ -5,20 +5,6 @@ export const deepCopy = (obj) => {
return JSON.parse(JSON.stringify(obj));
};
/**文件的基础路径*/
export function getFileBaseUrl() {
let protocol=window.location.protocol;
let configPath=process.env.VUE_APP_FILE_BASE_URL;
let baseUrl='';
if(configPath.startsWith('http')){
baseUrl = configPath;
}else{
let domain = window.location.host;
baseUrl = protocol+'//'+domain+configPath;
}
return baseUrl;
}
/**
* 获取url协议
* @param {Object} type