refactor: 移除旧版大屏示例并接入新版数据大屏

删除 demo 下大屏与路由面板示例;新增数据大屏页面;部署脚本纳入版本库
This commit is contained in:
Ray.Hao committed 2026-09-30 19:00:47 +08:00
1 parent 30ff18951f
commit f852b22d07
109 files changed
+33216 -3580

No files matched your search

+13
View File
@@ -15,3 +15,16 @@ export function joinRoutePath(basePath: string, path?: string): string {
if (isExternal(path) || path.startsWith("/")) return path;
return `${basePath.replace(/\/+$/, "")}/${path}`;
}
/**
* 解析外链地址:http(s)/mailto/tel 原样返回,站内路径补全为当前站点地址
*
* 站内路径拼成 hash 地址(如 /data-screen → https://host/#/data-screen),供新标签页直接打开
*
* @param url 菜单配置的外链地址
*/
export function resolveExternalUrl(url: string): string {
if (isExternal(url)) return url;
return `${window.location.origin}${window.location.pathname}#${url}`;
}