index.ts
501 Bytes
import type { RouteRecordRaw } from "vue-router";
import { createRouter, createWebHistory } from "vue-router";
const ScanLivecode = () => import("@/views/scan-livecode/index.vue");
const routes: RouteRecordRaw[] = [
{ path: "/", redirect: "/scan-livecode" },
{ path: "/scan-livecode", component: ScanLivecode },
{ path: "/:pathMatch(.*)*", redirect: "/scan-livecode" },
];
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes,
});
export default router;