index.js 2.18 KB
/*
 * @Author: jiangbotao
 * @Date: 2019-12-03 22:31:08
 * @LastEditors: jiangbotao
 * @LastEditTime: 2019-12-13 20:08:15
 * @FilePath: \superglobevue\src\router\index.js
 */
import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);

const routes = [
    {
        path: "/",
        name: "home",
        component: () => import("./../components/viewer_3dmodel.vue")
    },
    {
        path: "/tdt",
        name: "home",
        component: () => import("./../components/viewer_tdt.vue")
    },
    {
        path: "/changeview",
        name: "home",
        component: () => import("./../components/viewer_changeview.vue")
    },
    {
        path: "/split",
        name: "home",
        component: () => import("./../components/viewer_split.vue")
    },
    {
        path: "/fire",
        name: "home",
        component: () => import("./../components/viewer_fire.vue")
    },
    {
        path: "/underground",
        name: "home",
        component: () => import("./../components/viewer_underground.vue")
    },
    {
        path: "/ymo",
        name: "home",
        component: () => import("./../components/viewer_ymo.vue")
    },
    {
        path: "/s3m",
        name: "home",
        component: () => import("./../components/viewer_s3m.vue")
    },
    {
        path: "/ms3m",
        name: "home",
        component: () => import("./../components/viewer_ms3m.vue")
    },
    {
        path: "/s3m_single_box",
        name: "home",
        component: () => import("./../components/viewer_s3m_single_box.vue")
    },
    {
        path: "/s3m_single",
        name: "home",
        component: () => import("./../components/viewer_s3m_single.vue")
    },
    {
        path: "/hyp",
        name: "home",
        component: () => import("./../components/viewer_s3mbhyp.vue")
    },
    {
        path: "/spatial1",
        name: "home",
        component: () => import("./../components/viewer_spatialquery.vue")
    },
    {
        path: "/spatial2",
        name: "home",
        component: () => import("./../components/viewer_spatialquery_tl.vue")
    }
];

const router = new VueRouter({
    mode: "history",
    base: process.env.BASE_URL,
    routes
});

export default router;