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.
|
|
import { createRouter, createWebHashHistory } from 'vue-router' const Home = () => import('@/pages') const Detail = () => import('@/pages/Detail') const Recruit = () => import('@/pages/Recruit') const Contact = () => import('@/pages/Contact') const HardwareCase = () => import('@/pages/HardwareCase') const Company = () => import('@/pages/Company') const CaseShow = () => import('@/pages/CaseShow') const Product = () => import('@/pages/Product')
// 配置路由信息
const routes = [ { path: '/', component: Home }, { path: '/detail', component: Detail }, { path: '/recruit', component: Recruit }, { path: '/contact', component: Contact }, { path: '/hardware-case', component: HardwareCase }, { path: '/company', component: Company }, { path: '/case-show', component: CaseShow }, { path: '/product', component: Product }, ]
const router = createRouter({ routes, history: createWebHashHistory(), })
export default router
|