index.js
787 Bytes
import Vue from 'vue' //引入Vue
import Router from 'vue-router' //引入vue-router
import HomeMap from '@/components/HomeMap'
import DkMap from '@/components/DkMap'
import XzqMap from '@/components/XzqMap.vue'
import WFSQuery from '@/components/WFSQuery.vue'
Vue.use(Router) //Vue全局使用Router
export default new Router({
routes: [
{
path: '/home-map',
name: 'HomeMap',
component: HomeMap
},
{
path: '/dk-map',
name: 'DkMap',
component: DkMap
},
{
path: '/xzq-map',
name: 'DkMap',
component: XzqMap
},
{
path: '/wfs',
name: 'WFS',
component: WFSQuery
}
]
})