| | |
| | | "lint": "vue-cli-service lint" |
| | | }, |
| | | "dependencies": { |
| | | "@cgcs2000/mapbox-gl": "^1.13.0", |
| | | "@jiaminghi/data-view": "^2.10.0", |
| | | "axios": "^0.18.0", |
| | | "core-js": "^3.6.5", |
| | |
| | | // import 'babel-polyfill' |
| | | import Vue from 'vue' |
| | | import App from './App.vue' |
| | | import router from './router' |
| | |
| | | * } |
| | | */ |
| | | const MapTemplate = (r) => require.ensure([], () => r(require('../views/MapTemplate')), 'frame') |
| | | const MapBoxHome = r => require.ensure([], () => r(require('../views/mapbox/MapBoxHome')), 'frame') |
| | | const routes = [ |
| | | { path: '/mapTemplate', name: 'MapTemplate', meta: { statusBgc: 0 }, component: MapTemplate }, |
| | | { path: '/mapboxHome', name: 'MapBoxHome', meta: { statusBgc: 0 }, component: MapBoxHome } |
| | | { path: '/mapTemplate', name: 'MapTemplate', meta: { statusBgc: 0 }, component: MapTemplate } |
| | | ] |
| | | |
| | | // 所有上面定义的路由都要写在下面的routes里 |
| | |
| | | parallel: require('os').cpus().length > 1, // 构建时开启多进程处理babel编译 |
| | | productionSourceMap: false, |
| | | devServer: { |
| | | host: 'localhost', |
| | | open: true, |
| | | // host: 'localhost', |
| | | // open: true, |
| | | port: 8888, |
| | | // overlay: false, |
| | | overlay: { |