mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-17 11:09:10 +08:00
【同步3.7.4版本代码】新增全局布局隐藏配置,优化多个组件的属性和逻辑
This commit is contained in:
@ -52,7 +52,20 @@ export const useGlobSetting = (): Readonly<GlobConfig> => {
|
||||
window['_CONFIG'] = {}
|
||||
}
|
||||
|
||||
// update-begin--author:sunjianlei---date:220250115---for:【QQYUN-10956】配置了自定义前缀,外部连接打不开,需要兼容处理
|
||||
let domainURL = VITE_GLOB_DOMAIN_URL;
|
||||
|
||||
// 如果不是以http(s)开头的,也不是以域名开头的,那么就是拼接当前域名
|
||||
if (!/^http(s)?/.test(domainURL) && !/^(\/\/)?(.*\.)?.+\..+/.test(domainURL)) {
|
||||
if (!domainURL.startsWith('/')) {
|
||||
domainURL = '/' + domainURL;
|
||||
}
|
||||
domainURL = window.location.origin + domainURL;
|
||||
}
|
||||
// update-end--author:sunjianlei---date:220250115---for:【QQYUN-10956】配置了自定义前缀,外部连接打不开,需要兼容处理
|
||||
|
||||
// @ts-ignore
|
||||
window._CONFIG['domianURL'] = VITE_GLOB_DOMAIN_URL;
|
||||
window._CONFIG['domianURL'] = domainURL;
|
||||
|
||||
return glob as Readonly<GlobConfig>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user