You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
487 B
27 lines
487 B
import Vue from "vue"; |
|
import VueRouter from "vue-router"; |
|
import DashBoard from "../views/dashboard/dashboard.vue"; |
|
import HomePage from "../views/dashboard/homepage.vue"; |
|
|
|
Vue.use(VueRouter); |
|
|
|
const routes = [ |
|
{ |
|
path: "/dashboard", |
|
name: "dashboard", |
|
component: DashBoard, |
|
}, |
|
{ |
|
path: "/", |
|
name: "homepage", |
|
component: HomePage, |
|
}, |
|
]; |
|
|
|
const router = new VueRouter({ |
|
mode: "history", |
|
base: process.env.BASE_URL, |
|
routes, |
|
}); |
|
|
|
export default router;
|
|
|