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.
|
|
|
|
import Vue from "vue";
|
|
|
|
|
import VueRouter from "vue-router";
|
|
|
|
|
import DashBoard from "../views/dashboard/dashboard.vue";
|
|
|
|
|
import HomePage from "../views/dashboard/homepage.vue";
|
|
|
|
|
import home from "../views/dashboard/home.vue";
|
|
|
|
|
import Express from "../views/expresslist/index.vue";
|
|
|
|
|
|
|
|
|
|
Vue.use(VueRouter);
|
|
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
|
{
|
|
|
|
|
path: "/dashboard",
|
|
|
|
|
name: "dashboard",
|
|
|
|
|
component: DashBoard,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/homepage",
|
|
|
|
|
name: "homepage",
|
|
|
|
|
component: HomePage,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/",
|
|
|
|
|
name: "home",
|
|
|
|
|
component: home,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/express",
|
|
|
|
|
name: "express",
|
|
|
|
|
component: Express,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
|
|
|
|
mode: "hash",
|
|
|
|
|
base: process.env.BASE_URL,
|
|
|
|
|
routes,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export default router;
|