Optimized routing structure

This commit is contained in:
2023-12-20 00:38:52 +08:00
parent 60705c9cdc
commit d6fa79bb4c
7 changed files with 280 additions and 314 deletions

View File

@@ -1,7 +1,7 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import index from '../views/Index.vue'
import home from "@/components/Home/HomePage.vue";
import hotNews from "@/components/HotNews/HotNews.vue";
const routes = [
{
@@ -18,7 +18,13 @@ const routes = [
path: '/home',
name: 'home',
component: home
}],
},
{
path: '/hotNews',
name: 'hotNews',
component: hotNews
},
],
},
]