From ed8dc01ed9d9500c5023191af7d097087ce1b1b9 Mon Sep 17 00:00:00 2001 From: WangShen007 Date: Sat, 24 Oct 2026 06:33:00 +0000 Subject: [PATCH] fix(ui): sync deployed footer cleanup Use deployed server source as canonical. Remove the shared legal footer and keep its regression test. Remove four stale temporary test artifacts absent from the server. --- backend/temp/test.pdf | 1 - backend/temp/test.txt | 1 - .../__tests__/layouts/DashboardLayout.spec.ts | 7 +++ frontend/src/layouts/DashboardLayout.vue | 46 +------------------ temp/test.pdf | 1 - temp/test.txt | 1 - 6 files changed, 9 insertions(+), 48 deletions(-) delete mode 100644 backend/temp/test.pdf delete mode 100644 backend/temp/test.txt delete mode 100644 temp/test.pdf delete mode 100644 temp/test.txt diff --git a/backend/temp/test.pdf b/backend/temp/test.pdf deleted file mode 100644 index cd3a2d5..0000000 --- a/backend/temp/test.pdf +++ /dev/null @@ -1 +0,0 @@ -%PDF-1.4 test pdf content \ No newline at end of file diff --git a/backend/temp/test.txt b/backend/temp/test.txt deleted file mode 100644 index 08cf610..0000000 --- a/backend/temp/test.txt +++ /dev/null @@ -1 +0,0 @@ -test content \ No newline at end of file diff --git a/frontend/src/__tests__/layouts/DashboardLayout.spec.ts b/frontend/src/__tests__/layouts/DashboardLayout.spec.ts index c051fea..b0f038d 100644 --- a/frontend/src/__tests__/layouts/DashboardLayout.spec.ts +++ b/frontend/src/__tests__/layouts/DashboardLayout.spec.ts @@ -137,6 +137,13 @@ describe('DashboardLayout', () => { expect(wrapper.find('.dashboard-layout').exists()).toBe(true) }) + it('does not render the removed copyright and legal footer', () => { + expect(wrapper.find('footer').exists()).toBe(false) + expect(wrapper.text()).not.toContain('保留所有权利') + expect(wrapper.text()).not.toContain('隐私政策') + expect(wrapper.text()).not.toContain('服务条款') + }) + it('toggles sidebar correctly', async () => { const vm = wrapper.vm as unknown as DashboardLayoutInstance expect(wrapper.classes()).not.toContain('sidebar-collapsed') diff --git a/frontend/src/layouts/DashboardLayout.vue b/frontend/src/layouts/DashboardLayout.vue index 63e5b40..bc9476b 100644 --- a/frontend/src/layouts/DashboardLayout.vue +++ b/frontend/src/layouts/DashboardLayout.vue @@ -367,18 +367,6 @@ const openNotificationsFromSheet = () => { - -