chore: 初始化文件结构
This commit is contained in:
35
src/router/index.js
Normal file
35
src/router/index.js
Normal file
@@ -0,0 +1,35 @@
|
||||
import { createRouter, createWebHashHistory } from 'vue-router';
|
||||
|
||||
import AboutView from '@/views/AboutView/AboutView.vue';
|
||||
import IndexView from '@/views/IndexView/IndexView.vue';
|
||||
|
||||
export const router = createRouter({
|
||||
history: createWebHashHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
name: 'IndexView',
|
||||
component: IndexView,
|
||||
},
|
||||
{
|
||||
path: '/about-view',
|
||||
name: 'AboutView',
|
||||
component: AboutView,
|
||||
},
|
||||
{
|
||||
path: '/nav-view',
|
||||
name: 'NavView',
|
||||
component: () => import('@/views/NavView/NavView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/search-view',
|
||||
name: 'SearchView',
|
||||
component: () => import('@/views/SearchView/SearchView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/toolbox-view',
|
||||
name: 'ToolboxView',
|
||||
component: () => import('@/views/ToolboxView/ToolboxView.vue'),
|
||||
},
|
||||
],
|
||||
});
|
Reference in New Issue
Block a user