From ec7f76fede583388bf33f569b87e758da3f96d49 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Fri, 11 Sep 2026 16:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/AppLayout.test.mjs | 7 ++ src/layouts/AppLayout.vue | 10 ++- src/modules/auth/api/auth.ts | 2 +- src/modules/auth/views/AuthViews.test.mjs | 9 ++ src/modules/auth/views/LoginView.vue | 1 + src/modules/auth/views/RegisterView.vue | 6 +- .../dashboard/views/DashboardView.test.mjs | 11 ++- src/modules/dashboard/views/DashboardView.vue | 26 +++++- .../tenant-management/api/merchantIam.ts | 14 +++ .../store/tenantAdministration.ts | 18 +++- .../utils/qualificationFile.test.mjs | 4 +- .../utils/qualificationFile.ts | 6 +- .../views/CompanyProfileView.vue | 88 +++++++++++++++---- .../views/TenantAdministrationViews.test.mjs | 22 ++++- src/navigation/clientNavigation.test.mjs | 26 ++++++ src/navigation/clientNavigation.ts | 35 ++++++++ src/styles/index.css | 4 + src/styles/shell.css | 5 ++ 18 files changed, 263 insertions(+), 31 deletions(-) diff --git a/src/layouts/AppLayout.test.mjs b/src/layouts/AppLayout.test.mjs index 4ad0ffd..eef11da 100644 --- a/src/layouts/AppLayout.test.mjs +++ b/src/layouts/AppLayout.test.mjs @@ -55,6 +55,13 @@ test('source contract: keeps route context and user identity in the compact head assert.doesNotMatch(routerSource, /showPageHeading|showTenantName/) }) +test('source contract: renders the complete route breadcrumb before page content', () => { + assert.match(layoutSource, /import \{ getFirstAccessiblePath, getRouteBreadcrumbs \} from '@\/navigation\/clientNavigation'/) + assert.match(layoutSource, /const breadcrumbs = computed\(\(\) => getRouteBreadcrumbs\(route\.path, String\(pageTitle\.value\)\)\)/) + assert.match(layoutSource, /