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