From a6e263dd70a0cd967e076a89106d5f1230a4b146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E5=88=9D?= <3236758982@qq.com> Date: Wed, 11 Mar 2026 18:24:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E9=A1=B5=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/MobileLayout.vue | 3 +- src/router/modules/remaining.ts | 22 +++ src/views/function/index.vue | 231 +++++++++++++++++++++++++ 3 files changed, 255 insertions(+), 1 deletion(-) create mode 100644 src/views/function/index.vue diff --git a/src/layout/components/MobileLayout.vue b/src/layout/components/MobileLayout.vue index c01c9cc..e1e852a 100644 --- a/src/layout/components/MobileLayout.vue +++ b/src/layout/components/MobileLayout.vue @@ -24,13 +24,14 @@ const pageTitle = computed(() => { const tabs = [ { name: 'Index', path: '/index', label: '首页', icon: 'home' }, { name: 'Workbench', path: '/index', label: '工作台', icon: 'workbench' }, - { name: 'Function', path: '/index', label: '功能', icon: 'function' }, + { name: 'Function', path: '/function', label: '功能', icon: 'function' }, { name: 'Mine', path: '/user/center', label: '我的', icon: 'mine' } ] const activeTab = computed(() => { const p = route.path if (p === '/index' || p === '/') return 'Index' + if (p === '/function' || p.startsWith('/function/')) return 'Function' if (p.includes('/user/center')) return 'Mine' return 'Index' }) diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index b1dd5aa..58e6274 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -128,6 +128,28 @@ const remainingRouter: AppRouteRecordRaw[] = [ } ] }, + { + path: '/function', + component: Layout, + name: 'FunctionCenter', + meta: { + hidden: true + }, + children: [ + { + path: '', + component: () => import('@/views/function/index.vue'), + name: 'FunctionIndex', + meta: { + canTo: true, + hidden: true, + noTagsView: true, + icon: 'ep:grid', + title: '功能' + } + } + ] + }, { path: '/dict', component: Layout, diff --git a/src/views/function/index.vue b/src/views/function/index.vue new file mode 100644 index 0000000..fcb667a --- /dev/null +++ b/src/views/function/index.vue @@ -0,0 +1,231 @@ + + + + +