From 7037db01c53a0da6e290202abec3990f1c722c42 Mon Sep 17 00:00:00 2001
From: Phoenix <64720302+Concur-max@users.noreply.github.com>
Date: Wed, 31 Jan 2024 16:42:14 +0800
Subject: [PATCH] s
---
src/router/index.js | 12 ++++++++++--
src/views/home/index.vue | 11 +++++++++++
2 files changed, 21 insertions(+), 2 deletions(-)
create mode 100644 src/views/home/index.vue
diff --git a/src/router/index.js b/src/router/index.js
index 7a7c174..681be59 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -2,9 +2,17 @@
import { createRouter, createWebHistory } from 'vue-router';
const routes = [
{
- /* path: '/',
+ path: '/',
name: 'helloWorld',
- component: () => import('@/views/helloWorld/index.vue')*/
+ redirect:'/home',
+ component: () => import('@/views/home/index.vue'),
+ children:[
+ {
+ path: '/home',
+ name: 'home',
+ component: () => import('@/views/home/index.vue')
+ },
+ ]
}
// 添加其他路由配置...
];
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
new file mode 100644
index 0000000..5176044
--- /dev/null
+++ b/src/views/home/index.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+