2019-03-14 22:48:25 +02:00
|
|
|
import VueRouter from "vue-router";
|
|
|
|
|
import Input from "./components/InputTab.vue";
|
2019-03-20 22:35:02 +02:00
|
|
|
import Threshold from "./components/ThresholdTab.vue";
|
2019-03-18 22:17:25 +02:00
|
|
|
import System from "./components/SystemTab.vue";
|
|
|
|
|
import Camera from "./components/CameraTab.vue";
|
2019-03-14 22:48:25 +02:00
|
|
|
|
|
|
|
|
const routes = [
|
2019-03-18 22:17:25 +02:00
|
|
|
{ path: '/', redirect: '/vision/input'},
|
|
|
|
|
{ path: '/vision/input', component: Input, name:'input' },
|
2019-03-24 21:01:25 +03:00
|
|
|
{ path: '/vision/threshold', component: Threshold ,name:'threshold'},
|
2019-03-18 22:17:25 +02:00
|
|
|
{path:'/settings/system', component: System },
|
|
|
|
|
{path:'/settings/camera', component: Camera}
|
2019-03-14 22:48:25 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
|
|
|
|
routes // short for `routes: routes`
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export default router;
|