From 5f715675c31431eef56e9a178e6779c23c6457c2 Mon Sep 17 00:00:00 2001 From: ycy <2861518472@qq.com> Date: Mon, 22 Apr 2024 17:15:25 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=96=B0=E5=A2=9E=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 88b0ed0..d93b18e 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -7,13 +7,14 @@ const router = createRouter({ routes: [ { path: '/', + redirect: '/home', name: 'home', component: Layout, children: [ { - path: '/ad', - name: 'ad', - component: () => import('@/papes/ShiYan.vue') + path: '/home', + name: '首页', + component: HomeView, } ] }