From 58e1c34b69d2a942fce4fd0f64ed88ad8041b07c Mon Sep 17 00:00:00 2001 From: Nick Zeng Date: Wed, 18 Mar 2026 18:04:41 +0800 Subject: [PATCH] auth page enhancement --- .../src/components/layouts/MainLayout.vue | 6 +- .../layouts/__tests__/MainLayout.spec.ts | 42 +++++ .../src/pages/profile/__tests__/index.spec.ts | 129 +++++++++++++++ .../pages/profile/__tests__/password.spec.ts | 149 ++++++++++++++++++ frontend/src/pages/profile/index.vue | 93 +++++++++++ frontend/src/pages/profile/password.vue | 131 +++++++++++++++ frontend/src/stores/__tests__/user.spec.ts | 74 +++++++++ frontend/src/stores/user.ts | 18 +++ 8 files changed, 640 insertions(+), 2 deletions(-) create mode 100644 frontend/src/pages/profile/__tests__/index.spec.ts create mode 100644 frontend/src/pages/profile/__tests__/password.spec.ts create mode 100644 frontend/src/pages/profile/index.vue create mode 100644 frontend/src/pages/profile/password.vue diff --git a/frontend/src/components/layouts/MainLayout.vue b/frontend/src/components/layouts/MainLayout.vue index 10298ac..3f269f4 100644 --- a/frontend/src/components/layouts/MainLayout.vue +++ b/frontend/src/components/layouts/MainLayout.vue @@ -101,6 +101,8 @@ const breadcrumbItems = computed(() => { '/refunds': '退款列表', '/refund-items': '退款子项', '/mq-status': '队列监控', + '/profile': '个人信息', + '/profile/password': '修改密码', } const items: Array<{ title: string; path: string }> = [{ title: '首页', path: '/' }] @@ -133,11 +135,11 @@ const breadcrumbItems = computed(() => {