|
@@ -28,7 +28,7 @@ console.log('height:', window.screen.height)
|
|
console.log('clientWidth:', document.body.clientWidth)
|
|
console.log('clientWidth:', document.body.clientWidth)
|
|
console.log('clientHeight:', document.body.clientHeight)
|
|
console.log('clientHeight:', document.body.clientHeight)
|
|
// 打包后,监听deviceready事件,处理 部分设备 不能使用cordova插件方法的问题
|
|
// 打包后,监听deviceready事件,处理 部分设备 不能使用cordova插件方法的问题
|
|
-if (process.env.NODE_ENV === 'production') {
|
|
|
|
|
|
+if (process.env.NODE_ENV === 'production' && process.env.VUE_APP_RealEnv !== 'test') {
|
|
window.addEventListener('deviceready', function() {
|
|
window.addEventListener('deviceready', function() {
|
|
new Vue({
|
|
new Vue({
|
|
router,
|
|
router,
|
|
@@ -38,7 +38,7 @@ if (process.env.NODE_ENV === 'production') {
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
// 开发环境
|
|
// 开发环境
|
|
- new Vue({
|
|
|
|
|
|
+ new Vue({
|
|
router,
|
|
router,
|
|
store,
|
|
store,
|
|
render: (h) => h(App),
|
|
render: (h) => h(App),
|