shuishen
18 hours ago 2ae460fc4a4c2419cf44329783d49a739e2a04ea
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: "/" }
  ]
});