import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router"; const routes: Array = [ { path: "/", name: "Design", component: () => import("@/views/design-screen/index.vue"), }, { path: "/preview", name: "Preview", component: () => import("@/views/preview/index.vue"), }, ]; const router = createRouter({ history: createWebHistory(process.env.BASE_URL), routes, }); export default router;