Files
PhotonVision/chameleon-client/src/routes.js

27 lines
850 B
JavaScript
Raw Normal View History

2019-03-14 22:48:25 +02:00
import VueRouter from "vue-router";
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";
import System from "./components/SystemTab.vue";
import Camera from "./components/CameraTab.vue";
import Contours from "./components/contourTab.vue";
2019-03-14 22:48:25 +02:00
const routes = [
{ path: '/', redirect: '/vision/input'},
{ 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({
routes
2019-03-14 22:48:25 +02:00
})
export default router;