import { createRouter, createWebHashHistory } from "vue-router"; import Overview from "./views/overview/index.vue"; import Tabulation from "./views/tabulation/index.vue"; export const history = createWebHashHistory(); const routes = [{ path: "/overview", name: "overview", component: Overview }]; if (!window.platform.sceneDraw) { routes.push({ path: "/tabulation", name: "tabulation", component: Tabulation }) } export const router = createRouter({ history, routes: [ ...routes, { path: "/:pathMatch(.*)*", redirect: "/overview" }, ], });