shuishen
7 days ago deac984180e54dcb904f415c8f2e095b8b1661a7
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: "/" }
  ]
});