Files
audit-platform/综合管理平台/js/boot.js
T
guwangtu b91954df4a
CI / check (push) Failing after 15m48s
chore: initial open-source baseline v1.0.0
Signed-off-by: 南通一次元科技有限公司 <guwangtu@icimeta.com>
2026-12-05 15:44:53 +00:00

12 lines
514 B
JavaScript

// ==================== 启动 ====================
function tickClock(){ const d=new Date(); qs('clock').textContent=d.toLocaleDateString('zh-CN')+' '+d.toLocaleTimeString('zh-CN',{hour12:false}); }
setInterval(tickClock,1000); tickClock();
(function init(){
const qp = new URLSearchParams(location.search);
const qtab = qp.get('tab');
const h = (location.hash || '').replace('#','');
if (qtab && TAB_META[qtab]) switchTab(qtab);
else if (TAB_META[h]) switchTab(h);
else switchTab('dashboard');
})();