chore: 初始化文件结构

This commit is contained in:
2024-08-26 14:07:57 +08:00
parent d4f497f484
commit eb13a9efdb
24 changed files with 3035 additions and 0 deletions

35
src/router/index.js Normal file
View 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'),
},
],
});