src/App.vue
@@ -1,11 +1,12 @@ <template> <div id="app" :class="{ cantdoit: cantdoits }"> <div ref="appRef" id="app" :class="{ cantdoit: cantdoits }"> <router-view v-if="isRouterActive"></router-view> </div> </template> <script> import AMapLoader from '@amap/amap-jsapi-loader' import DevicePixelRatio from './utils/devicePixelRatio' export default { name: 'App', @@ -19,7 +20,9 @@ } }, created () { if (!this._isMobile()) { new DevicePixelRatio().init() } }, mounted () { var transmitData = {}