From 2bf9f2cbaeecc4baf7957da63a92ea2782714698 Mon Sep 17 00:00:00 2001 From: qiuyuan Date: Thu, 20 Nov 2025 16:33:46 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 27 +++- src/components/Header.vue | 123 +++++++++++++++++ src/components/layout.vue | 58 ++++---- src/components/sidebar.vue | 149 ++++++++++++++++----- src/main.ts | 13 +- src/router/index.ts | 42 +++--- src/views/controlPanel/fileStore/index.vue | 21 ++- src/views/home/index.vue | 27 ++-- 8 files changed, 325 insertions(+), 135 deletions(-) create mode 100644 src/components/Header.vue diff --git a/src/App.vue b/src/App.vue index 849fab7..e4bd3fb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,17 +1,30 @@ + + \ No newline at end of file diff --git a/src/components/Header.vue b/src/components/Header.vue new file mode 100644 index 0000000..766bd83 --- /dev/null +++ b/src/components/Header.vue @@ -0,0 +1,123 @@ + + + + + + \ No newline at end of file diff --git a/src/components/layout.vue b/src/components/layout.vue index 71c9313..d482390 100644 --- a/src/components/layout.vue +++ b/src/components/layout.vue @@ -1,51 +1,49 @@ - - - \ No newline at end of file diff --git a/src/components/sidebar.vue b/src/components/sidebar.vue index 129d02c..fe8adf1 100644 --- a/src/components/sidebar.vue +++ b/src/components/sidebar.vue @@ -7,26 +7,33 @@ :open-keys="openKeys" @click="handleMenuClick" theme="light" + class="custom-menu" > @@ -37,6 +44,7 @@ - - + - - + \ No newline at end of file diff --git a/src/views/home/index.vue b/src/views/home/index.vue index a20a8dd..0675516 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,22 +1,13 @@ - - - + - \ No newline at end of file + \ No newline at end of file From 1b6239b4bc9613ba7dae57ae224f5b58b0d57f59 Mon Sep 17 00:00:00 2001 From: qiuyuan Date: Thu, 20 Nov 2025 18:42:27 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/controlPanel/fileStore/index.vue | 767 ++++++++++++++++++++- 1 file changed, 759 insertions(+), 8 deletions(-) diff --git a/src/views/controlPanel/fileStore/index.vue b/src/views/controlPanel/fileStore/index.vue index 90d93cb..b4a96d5 100644 --- a/src/views/controlPanel/fileStore/index.vue +++ b/src/views/controlPanel/fileStore/index.vue @@ -1,10 +1,761 @@ - \ No newline at end of file + + + + + \ No newline at end of file From 0f5690fadb31582db00e6d2a8f9b52779a000cfc Mon Sep 17 00:00:00 2001 From: qiuyuan Date: Fri, 21 Nov 2025 16:34:12 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 21 +- src/components/sidebar.vue | 6 +- src/router/index.ts | 14 + .../controlPanel/account/history/index.vue | 116 +++ .../controlPanel/account/security/index.vue | 203 +++++ src/views/controlPanel/fileStore/index.vue | 844 ++++-------------- 6 files changed, 524 insertions(+), 680 deletions(-) create mode 100644 src/views/controlPanel/account/history/index.vue create mode 100644 src/views/controlPanel/account/security/index.vue diff --git a/src/App.vue b/src/App.vue index e4bd3fb..784c26a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,8 +1,9 @@ - @@ -19,12 +20,26 @@ import Header from '@/components/Header.vue' html, body { height: 100%; + overflow-x: hidden; /* 可选:防止水平滚动 */ } #app { min-height: 100vh; - margin-top: 66px; + display: flex; + flex-direction: column; } +/* 假设 Header 高度是 66px */ +header { + height: 66px; + position: fixed; + top: 0; + left: 0; + right: 0; + z-index: 1000; +} +.main-content { + padding-top: 30px; +} \ No newline at end of file diff --git a/src/components/sidebar.vue b/src/components/sidebar.vue index fe8adf1..b47ee69 100644 --- a/src/components/sidebar.vue +++ b/src/components/sidebar.vue @@ -76,7 +76,8 @@ const menuItems: MenuItem[] = [ name: '账号', icon: TeamOutlined, children: [ - { path: '/controlPanel/account/profile', name: '个人资料' }, + { path: '/accountSecurity', name: '账号安全' }, + { path: '/accountHistory', name: '访问记录' }, { path: '/controlPanel/account/security', name: '安全设置' } ] } @@ -102,7 +103,8 @@ const handleMenuClick = ({ key }: { key: string }) => { height: 100vh; background: #fff; box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1); - overflow-y: auto; + padding-top:30px; + /* overflow-y: auto; */ } .menu-item-content { diff --git a/src/router/index.ts b/src/router/index.ts index fdca19e..508b413 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -4,6 +4,10 @@ import Layout from '@/components/Layout.vue' const HomeView = () => import('@/views/home/index.vue') const FileStore = () => import('@/views/controlPanel/fileStore/index.vue') +// 账号安全 +const AccountSecurity = () => import('@/views/controlPanel/account/security/index.vue') +// 访问记录 +const AccountHistory = () => import('@/views/controlPanel/account/history/index.vue') const routes: RouteRecordRaw[] = [ { @@ -20,6 +24,16 @@ const routes: RouteRecordRaw[] = [ path: '', // 空路径,访问 /fileStore 时显示FileStore组件 name: 'FileStoreContent', component: FileStore + }, + { + path: '/accountSecurity', + name: 'AccountSecurity', + component: AccountSecurity + }, + { + path: '/accountHistory', + name: 'AccountHistory', + component: AccountHistory } ] }, diff --git a/src/views/controlPanel/account/history/index.vue b/src/views/controlPanel/account/history/index.vue new file mode 100644 index 0000000..cf0c8b3 --- /dev/null +++ b/src/views/controlPanel/account/history/index.vue @@ -0,0 +1,116 @@ + + + + + + \ No newline at end of file diff --git a/src/views/controlPanel/account/security/index.vue b/src/views/controlPanel/account/security/index.vue new file mode 100644 index 0000000..495af44 --- /dev/null +++ b/src/views/controlPanel/account/security/index.vue @@ -0,0 +1,203 @@ + + + + + + \ No newline at end of file diff --git a/src/views/controlPanel/fileStore/index.vue b/src/views/controlPanel/fileStore/index.vue index b4a96d5..04de818 100644 --- a/src/views/controlPanel/fileStore/index.vue +++ b/src/views/controlPanel/fileStore/index.vue @@ -1,761 +1,255 @@ \ No newline at end of file