From ef3c1fbf84e3a04b4336a376c37e6eb1dd7c8482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E7=AB=A0=E6=B5=A9?= Date: Mon, 16 Nov 2026 17:09:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E4=BE=A7=E6=A0=8F=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E6=A0=87=E6=B3=A8=E6=94=B9=E4=B8=BA=E4=BA=91=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为什么:平台已迁到云测试主机,侧栏底部仍硬编码「本地治理环境」,会让人误以为 操作的是本机旧栈。 改了什么:文案改为「云测试环境」,用例同时断言不再出现旧文案。 Co-Authored-By: Claude Opus 5.5 --- web/src/App.test.tsx | 4 ++-- web/src/App.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/App.test.tsx b/web/src/App.test.tsx index 9374056..1c73060 100644 --- a/web/src/App.test.tsx +++ b/web/src/App.test.tsx @@ -51,8 +51,8 @@ describe('WorkspaceShell', () => { } expect(html).not.toContain('来源链接') expect(html).not.toContain('待处理文件') - expect(html).toContain('本地治理环境') - expect(html).not.toContain('P2 本地治理环境') + expect(html).toContain('云测试环境') + expect(html).not.toContain('本地治理环境') }) it('omits the system open-page tab strip while retaining navigation and the current location', () => { diff --git a/web/src/App.tsx b/web/src/App.tsx index 2320ad0..cf80378 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -112,7 +112,7 @@ export function WorkspaceShell(props: WorkspaceShellProps) {
{navigationOpen ? (