feat: 统一研究模块表格布局与详情交互
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user