diff --git a/frontend/index.html b/frontend/index.html index 066879be..4c164dd6 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -65,7 +65,7 @@
CTMS

正在启动 CTMS

-

正在加载桌面客户端...

+

正在加载系统...

diff --git a/frontend/src/components/Layout.desktop.test.ts b/frontend/src/components/Layout.desktop.test.ts index 96cc53f0..255cfb41 100644 --- a/frontend/src/components/Layout.desktop.test.ts +++ b/frontend/src/components/Layout.desktop.test.ts @@ -67,6 +67,20 @@ describe("desktop layout shell", () => { expect(navigation).toContain("export const getActiveLayoutPath"); }); + it("keeps web project switching routed through the workbench entry", () => { + const webLayout = readWebLayoutSource(); + + expect(webLayout).toContain('class="workbench-return-button"'); + expect(webLayout).toContain('await router.push("/workbench")'); + expect(webLayout).toContain("const showAdminNavigation = computed(() => Boolean(auth.user) && (!study.currentStudy || isAdminContext.value))"); + expect(webLayout).not.toContain("hasDropdown: true"); + expect(webLayout).not.toContain("type: 'study'"); + expect(webLayout).not.toContain('type: "study"'); + expect(webLayout).not.toContain("`切换项目:${item.name}`"); + expect(webLayout).not.toContain("study.setCurrentStudy(cmd.value)"); + expect(webLayout).not.toContain('router.push("/project/overview");'); + }); + it("keeps desktop context labels and command entry points de-duplicated", () => { const source = readDesktopLayoutSource(); diff --git a/frontend/src/components/StudySelector.vue b/frontend/src/components/StudySelector.vue index f30c7e48..7d5460df 100644 --- a/frontend/src/components/StudySelector.vue +++ b/frontend/src/components/StudySelector.vue @@ -7,23 +7,8 @@ @@ -31,48 +16,20 @@ diff --git a/frontend/src/components/WebLayout.vue b/frontend/src/components/WebLayout.vue index 710ed978..e2dc18ba 100644 --- a/frontend/src/components/WebLayout.vue +++ b/frontend/src/components/WebLayout.vue @@ -22,7 +22,7 @@ - + @@ -141,25 +141,8 @@