You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
698 B
JavaScript

import Vue from 'vue'
import VueRouter from 'vue-router'
const Dashboard = () => import(/* webpackChunkName: "dashboard" */ '../views/Dashboard')
const Settings = () => import(/* webpackChunkName: "settings" */ '../views/Settings')
const Wifi = () => import(/* webpackChunkName: "wifi" */ '../views/Wifi')
const Sandbox = () => import(/* webpackChunkName: "sandbox" */ '../views/Sandbox')
Vue.use(VueRouter);
export default new VueRouter({
routes: [
{ path: '/', component: Dashboard },
{ path: '/settings', component: Settings },
{ path: '/wifi', component: Wifi },
{ path: '/sandbox', component: Sandbox },
{ path: '*', redirect: '/' }
],
});