2019-03-14 22:48:25 +02:00
|
|
|
import VueRouter from "vue-router";
|
2019-03-26 00:07:24 +02:00
|
|
|
import Vision from "./components/Vision.vue"
|
|
|
|
|
import Setting from "./components/Settings.vue"
|
2019-03-14 22:48:25 +02:00
|
|
|
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-24 22:11:29 +02:00
|
|
|
import Contours from "./components/contourTab.vue";
|
2019-03-14 22:48:25 +02:00
|
|
|
|
|
|
|
|
const routes = [
|
2019-03-18 22:17:25 +02:00
|
|
|
{ path: '/', redirect: '/vision/input'},
|
2019-03-26 00:07:24 +02:00
|
|
|
{ path: '/vision', component: Vision, children: [
|
|
|
|
|
{ path: 'input', component: Input },
|
|
|
|
|
{ path: 'threshold', component: Threshold },
|
|
|
|
|
{ path: 'contours', component: Contours }
|
|
|
|
|
]},
|
|
|
|
|
{ path: '/settings', component: Setting, children: [
|
|
|
|
|
{ path: 'system', component: System },
|
|
|
|
|
{ path: 'camera', component: Camera }
|
|
|
|
|
]}
|
2019-03-14 22:48:25 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
2019-03-26 00:07:24 +02:00
|
|
|
routes
|
2019-03-14 22:48:25 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export default router;
|