import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router"; const routes: Array = [ { path: "/", name: "stat", meta: { needAuth: true, }, component: () => import("./Stat"), }, ]; const router = createRouter({ history: createWebHashHistory(), routes, }); export default router;