index.js 532 Bytes
import { createRouter, createWebHistory } from "vue-router";

// 示例路由配置
const routes = [
  {
    path: "/",
    name: "Video",
    component: () => import("@/views/video/index.vue"),
  },
  {
    path: "/heatMap",
    name: "HeatMap",
    component: () => import("@/views/heatMap/index.vue"),
  },
  {
    path: "/areaHeatMap",
    name: "AreaHeatMap",
    component: () => import("@/views/areaHeat/index.vue"),
  },
];

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

export default router;