feat: 统一研究模块表格布局与详情交互

This commit is contained in:
yuxuanhui
2026-09-09 09:29:30 +08:00
parent f6c2dcead8
commit 20645d6d17
19 changed files with 1693 additions and 1243 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ export function contextLabel(context: PageContext): string {
}
export function pageFromHash(hash: string): WorkspacePage {
const page = hash.replace(/^#/, "");
const value = hash.replace(/^#/, "");
const page = value.startsWith("quantflow/") ? "quantflow" : value;
return Object.hasOwn(contextLabels, page)
? (page as WorkspacePage)
: "alphas";