diff --git a/main.js b/main.js index 10b2df1..8a30697 100644 --- a/main.js +++ b/main.js @@ -9,18 +9,21 @@ import * as roles from '@/utils/permission.js' // 引入uView import uView from '@/uni_modules/uview-ui' import mpShare from '@/uni_modules/uview-ui/libs/mixin/mpShare.js' +import TencentMap from '@/static/js/qqmap-wx-jssdk.min.js' Vue.mixin(mpShare) // 挂载全局对象 Vue.use(plugins).use(uView) Vue.config.productionTip = false - +const map = new TencentMap({ + key: 'PQ5BZ-GZ5C7-RTMXB-HSAPB-3TOAV-5CBLZ' +}) // 挂载vuex Vue.prototype.$store = store Vue.prototype.$dict = dict Vue.prototype.$util = util Vue.prototype.$roles = roles - +Vue.prototype.$map = map App.mpType = 'app' const app = new Vue({ diff --git a/sub/task/locate.vue b/sub/task/locate.vue index a9ae260..5e1985e 100644 --- a/sub/task/locate.vue +++ b/sub/task/locate.vue @@ -142,7 +142,6 @@