feat: add HTTPS subdomains, shared cookie, templates and wiki docs
CI / check (push) Waiting to run

Signed-off-by: 南通一次元科技有限公司 <guwangtu@icimeta.com>
This commit is contained in:
guwangtu committed 2026-12-06 13:29:25 +00:00
1 parent b91954df4a
commit 4b5b119c18
23 files changed
+526 -53

No files matched your search

+10 -3
View File
@@ -209,12 +209,19 @@ body{font-family:"Microsoft YaHei","PingFang SC",sans-serif;background:
</div>
<script>
function moduleUrl(prefix, port, embed){
const h = location.hostname;
if(/(^|\.)sj\.icimeta\.com$/.test(h)){
return `https://${prefix}.sj.icimeta.com/${embed ? '?embed=1' : ''}`;
}
return `${location.protocol}//${h}:${port}/${embed ? '?embed=1' : ''}`;
}
const MODULES = {
home: {name:'工作台', icon:'◈', native:true},
digital: {name:'数字化审计', icon:'🧭', url:()=>'/digital-audit?embed=1', standalone:()=>'/digital-audit'},
audit: {name:'审计管理', icon:'📋', url:()=>`${location.protocol}//${location.hostname}:8000/?embed=1`, standalone:()=>`${location.protocol}//${location.hostname}:8000/`},
risk: {name:'风险管理', icon:'⚠️', url:()=>`${location.protocol}//${location.hostname}:8001/?embed=1`, standalone:()=>`${location.protocol}//${location.hostname}:8001/`},
contract: {name:'合同审核', icon:'📑', url:()=>`${location.protocol}//${location.hostname}:8090/?embed=1`, standalone:()=>`${location.protocol}//${location.hostname}:8090/`},
audit: {name:'审计管理', icon:'📋', url:()=>moduleUrl('audit',8000,true), standalone:()=>moduleUrl('audit',8000,false)},
risk: {name:'风险管理', icon:'⚠️', url:()=>moduleUrl('risk',8001,true), standalone:()=>moduleUrl('risk',8001,false)},
contract: {name:'合同审核', icon:'📑', url:()=>moduleUrl('contract',8090,true), standalone:()=>moduleUrl('contract',8090,false)},
knowledge:{name:'知识库', icon:'📚', url:()=>'/knowledge?embed=1', standalone:()=>'/knowledge'},
settings: {name:'系统设置', icon:'⚙️', url:()=>'/settings?embed=1', standalone:()=>'/settings'}
};