罗广辉
9 hours ago 7cc239cee1a9af4e2e8a0f3d5b7a00a074b17214
1
2
3
4
5
6
7
8
9
10
11
12
13
import { createRouter, createWebHashHistory } from "vue-router";
 
import CapabilityView from "@/views/CapabilityView.vue";
import OverviewView from "@/views/OverviewView.vue";
 
export const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    { path: "/", name: "overview", component: OverviewView },
    { path: "/capability/:id", name: "capability", component: CapabilityView },
    { path: "/:pathMatch(.*)*", redirect: "/" }
  ]
});