import {createRouter, createWebHistory} from "vue-router";

const routes = [
    {
        name: '首页',
        path: '/',
        component: () => import('../views/index/index.vue')
    },
    {
        name: '产品服务',
        path: '/products',
        component: () => import('../views/products/products.vue')
    },
    {
        name: '关于我们',
        path: '/about',
        component: () => import('../views/about/about.vue')
    },
    {
        name: '联系我们',
        path: '/contact',
        component: () => import('../views/contact/contact.vue')
    }
]

const router = createRouter({
    routes,
    history: createWebHistory()
})

export default router