慢直播web合成页面
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.

44 lines
954 B

3 years ago
import Vue from "vue";
import VueRouter from "vue-router";
import HomeView from "../views/HomeView.vue";
import AboutView from "../views/AboutView.vue";
import stopView from "../views/stopView.vue";
import trafficView from "../views/trafficView.vue";
3 years ago
Vue.use(VueRouter);
const routes = [
{
3 years ago
path: "/home",
name: "home",
3 years ago
component: HomeView,
},
{
3 years ago
path: "/",
name: "about",
component: AboutView,
3 years ago
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
3 years ago
// component: () => import(/* webpackChunkName: "about" */ "../views/AboutView.vue"),
},
{
path: "/stop",
name: "stop",
component: stopView,
},
{
path: "/traffic",
name: "traffic",
component: trafficView,
3 years ago
},
];
const router = new VueRouter({
3 years ago
mode: "history",
3 years ago
base: process.env.BASE_URL,
routes,
});
export default router;