|
|
@@ -1120,6 +1120,8 @@ export default function LegacyLayout(props: ParentProps) {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ const openAdmin = () => navigate("/admin")
|
|
|
+
|
|
|
function projectRoot(directory: string) {
|
|
|
const key = pathKey(directory)
|
|
|
const project = layout.projects
|
|
|
@@ -2240,7 +2242,7 @@ export default function LegacyLayout(props: ParentProps) {
|
|
|
helpLabel={() => language.t("sidebar.help")}
|
|
|
onOpenHelp={() => platform.openLink("https://kailin.com.cn/feedback")}
|
|
|
adminLabel={() => "团队管理"}
|
|
|
- onOpenAdmin={() => window.location.hash = "/admin"}
|
|
|
+ onOpenAdmin={openAdmin}
|
|
|
renderPanel={() =>
|
|
|
mobile ? <SidebarPanel project={currentProject} mobile /> : <SidebarPanel project={currentProject} merged />
|
|
|
}
|