Optimized routing structure
This commit is contained in:
@@ -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
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
]
|
||||
|
Reference in New Issue
Block a user