您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

24 行
523 B

2 年前
import {createRouter, createWebHashHistory, RouteRecord, RouteRecordRaw} from 'vue-router'
import Home from '../views/tst/Home.vue'
const routes: Array<RouteRecordRaw> =
[
{
path: '/',
name: 'Home',
component: Home
},
{
path: '/about',
name: 'About',
component: () => import('../views/tst/About.vue')
}
]
const router = createRouter({
history: createWebHashHistory(),
routes
})
export default router