UNPKG

siuuuu

Version:

A tool library for automatically generating code based on plop and babel

15 lines 404 B
import { createRouter, createWebHistory } from 'vue-router'; const routes = [{ name: 'home', path: '/home', component: () => import('@/view/home/index.vue') }, { name: "shopping-cart", path: "/shopping-cart", component: () => import("@/views/shopping-cart/index.vue") }]; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes }); export default router;