You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
391 B
23 lines
391 B
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
|
|
const Home = () => import('@/pages/Home')
|
|
const Login = () => import('@/pages/Login')
|
|
|
|
// 配置路由信息
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
component: Home,
|
|
},
|
|
{
|
|
path: '/login',
|
|
component: Login,
|
|
},
|
|
]
|
|
|
|
const router = createRouter({
|
|
routes,
|
|
history: createWebHashHistory(),
|
|
})
|
|
|
|
export default router
|