更新前后端配置并清理仓库内容
This commit is contained in:
12
InfoGenie-frontend/src/config/urlJoin.js
Normal file
12
InfoGenie-frontend/src/config/urlJoin.js
Normal file
@@ -0,0 +1,12 @@
|
||||
/** 避免源码中出现 https/http 连续字符,否则 Tailwind 扫描会误生成无效任意属性类 */
|
||||
const c = String.fromCharCode(58);
|
||||
const tlsScheme = String.fromCharCode(104, 116, 116, 112, 115);
|
||||
const plainScheme = String.fromCharCode(104, 116, 116, 112);
|
||||
|
||||
export function tlsHost(host) {
|
||||
return `${tlsScheme}${c}//${host}`;
|
||||
}
|
||||
|
||||
export function loopbackPort(host, port) {
|
||||
return `${plainScheme}${c}//${host}${c}${port}`;
|
||||
}
|
||||
Reference in New Issue
Block a user