'首次提交'

This commit is contained in:
有来技术
2021-11-13 23:26:02 +08:00
commit 232db25546
21 changed files with 1448 additions and 0 deletions

23
src/router/index.ts Normal file
View File

@@ -0,0 +1,23 @@
import {createRouter, createWebHashHistory, RouteRecordRaw} from 'vue-router'
import HelloWord from '../components/HelloWorld.vue'
const routes: Array<RouteRecordRaw> = [
{
path: '',
redirect: (_) => {
return {path: '/home'}
}
},
{
path: '/home',
name: 'HelloWord',
component: HelloWord
}
]
const router = createRouter({
history: createWebHashHistory(),
routes: routes
})
export default router