From 5df7f3966f79a5be2a01e39b0be8ab964068d745 Mon Sep 17 00:00:00 2001 From: JayChou <2064936853@qq.com> Date: Tue, 24 Sep 2024 09:47:53 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=AF=94=E8=B5=9B?= =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Layout/tabbar/index.vue | 2 +- src/router/module/constRouter/index.ts | 18 +++++++++++++----- src/views/home/index.vue | 25 +++++++++++++++++-------- src/views/raceInfo/index.vue | 14 ++++++++++++++ 4 files changed, 45 insertions(+), 14 deletions(-) create mode 100644 src/views/raceInfo/index.vue diff --git a/src/Layout/tabbar/index.vue b/src/Layout/tabbar/index.vue index d9bac90..a117025 100644 --- a/src/Layout/tabbar/index.vue +++ b/src/Layout/tabbar/index.vue @@ -30,7 +30,7 @@
- + {{ useUserStore.userInfo.username }} diff --git a/src/router/module/constRouter/index.ts b/src/router/module/constRouter/index.ts index 4ba23e9..88584bb 100644 --- a/src/router/module/constRouter/index.ts +++ b/src/router/module/constRouter/index.ts @@ -1,5 +1,4 @@ -export const constRouter: any = -{ +export const constRouter: any = { path: '/', component: () => import('@/Layout/index.vue'), name: 'Layout', @@ -108,8 +107,8 @@ export const constRouter: any = icon: '', title: '新闻内容详情', hidden: false, - } - } + }, + }, ], }, { @@ -122,6 +121,15 @@ export const constRouter: any = hidden: true, }, }, + { + path: '/raec-info', + name: 'RaecInfo', + component: () => import('@/views/raceInfo/index.vue'), + meta: { + icon: '', + title: '比赛详情', + hidden: true, + }, + }, ], } - diff --git a/src/views/home/index.vue b/src/views/home/index.vue index b7e835f..7778764 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,9 +1,9 @@