diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index 9936a87..8ad3a21 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -96,5 +96,8 @@ module.exports = { net: 'empty', tls: 'empty', child_process: 'empty' + }, + externals: { + 'AMap': 'AMap' } } diff --git a/index.html b/index.html index a5c3668..6f888bc 100644 --- a/index.html +++ b/index.html @@ -11,5 +11,6 @@
+ diff --git a/src/router/index.js b/src/router/index.js index c1d7822..d125785 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -65,7 +65,7 @@ export const constantRouterMap = [ { path: 'device', component: () => import('@/views/counter/device'), name: 'device', meta: { title: 'device' }}, { path: 'detail', component: () => import('@/views/counter/detail'), name: 'detail', meta: { title: 'detail' }}, { path: 'logs', component: () => import('@/views/counter/logs'), name: 'logs', meta: { title: 'logs' }}, - { path: 'map', component: () => import('@/views/counter/map'), name: 'map', meta: { title: 'map' }} + { path: 'map', component: () => import('@/views/counter/map2'), name: 'map', meta: { title: 'map' }} ] } // { diff --git a/src/views/counter/map2.vue b/src/views/counter/map2.vue new file mode 100644 index 0000000..865d453 --- /dev/null +++ b/src/views/counter/map2.vue @@ -0,0 +1,83 @@ + + + + +