From 328f5289d8c3d36fb9d66d99d5c168f9faa81e60 Mon Sep 17 00:00:00 2001 From: xianfuxing Date: Thu, 30 Aug 2018 18:02:13 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E6=9B=B4=E6=96=B0=E9=AB=98=E5=BE=B7?= =?UTF-8?q?=E5=8E=9F=E7=94=9Fapi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.base.conf.js | 3 ++ index.html | 1 + src/router/index.js | 2 +- src/views/counter/map2.vue | 83 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 src/views/counter/map2.vue 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 @@ + + + + +