diff --git a/src/router/router.config.js b/src/router/router.config.js index a84d307..e7620fc 100644 --- a/src/router/router.config.js +++ b/src/router/router.config.js @@ -6,41 +6,49 @@ export const constantRouterMap = [ { path: '/', component: () => import('@/views/layouts/index'), - redirect: '/index', + redirect: '/Tabbar', meta: { title: '成长', keepAlive: false }, children: [ { - path: '/index', - name: 'Development', - component: () => import('@/views/development/index'), - meta: { title: '成长', keepAlive: false } - }, - { - path: '/today', - name: 'Today', - component: () => import('@/views/today/index'), - meta: { title: '今日', keepAlive: false } - }, - { - path: '/insight', - name: 'Insight', - component: () => import('@/views/insight/index'), - meta: { title: '洞悉', keepAlive: false } - }, - { - path: '/optimize', - name: 'Optimize', - component: () => import('@/views/optimize/index'), - meta: { title: '优化', keepAlive: false } - }, - { - path: '/myself', - name: 'Myself', - component: () => import('@/views/myself/index'), - meta: { title: '我的', keepAlive: false } + path: '/Tabbar', + name: 'Index', + redirect: '/index', + component: () => import('@/views/Tabbar.vue'), + children: [ + { + path: '/index', + name: 'Development', + component: () => import('@/views/development/index'), + meta: { title: '成长', keepAlive: false } + }, + { + path: '/today', + name: 'Today', + component: () => import('@/views/today/index'), + meta: { title: '今日', keepAlive: false } + }, + { + path: '/insight', + name: 'Insight', + component: () => import('@/views/insight/index'), + meta: { title: '洞悉', keepAlive: false } + }, + { + path: '/optimize', + name: 'Optimize', + component: () => import('@/views/optimize/index'), + meta: { title: '优化', keepAlive: false } + }, + { + path: '/myself', + name: 'Myself', + component: () => import('@/views/myself/index'), + meta: { title: '我的', keepAlive: false } + } + ] }, { path: '/familyNumber', diff --git a/src/views/Tabbar.vue b/src/views/Tabbar.vue new file mode 100644 index 0000000..2373586 --- /dev/null +++ b/src/views/Tabbar.vue @@ -0,0 +1,24 @@ + + + + + diff --git a/src/views/development/index.vue b/src/views/development/index.vue index 4f139b0..faa7d38 100644 --- a/src/views/development/index.vue +++ b/src/views/development/index.vue @@ -1,14 +1,12 @@