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 @@ + + + + +