diff --git a/frontend/index.html b/frontend/index.html index 6129c112..a753374e 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -76,7 +76,7 @@

正在启动 CTMS

-

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

+

正在加载系统...

diff --git a/frontend/src/components/Layout.desktop.test.ts b/frontend/src/components/Layout.desktop.test.ts index b1414d5b..c3f1bb17 100644 --- a/frontend/src/components/Layout.desktop.test.ts +++ b/frontend/src/components/Layout.desktop.test.ts @@ -70,6 +70,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 5e5bf796..fed942e1 100644 --- a/frontend/src/components/WebLayout.vue +++ b/frontend/src/components/WebLayout.vue @@ -22,7 +22,7 @@ - + @@ -141,25 +141,8 @@