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