|
@@ -23,12 +23,12 @@ if (process.env.NODE_ENV === 'production' && process.env.VUE_APP_RealEnv !== 'pr
|
|
|
}
|
|
|
const ua = navigator.userAgent
|
|
|
|
|
|
-console.log('wdith:', window.screen.width)
|
|
|
-console.log('height:', window.screen.height)
|
|
|
-console.log('clientWidth:', document.body.clientWidth)
|
|
|
-console.log('clientHeight:', document.body.clientHeight)
|
|
|
+// console.log('wdith:', window.screen.width)
|
|
|
+// console.log('height:', window.screen.height)
|
|
|
+// console.log('clientWidth:', document.body.clientWidth)
|
|
|
+// console.log('clientHeight:', document.body.clientHeight)
|
|
|
// 打包后,监听deviceready事件,处理 部分设备 不能使用cordova插件方法的问题
|
|
|
-if (process.env.NODE_ENV === 'production' && process.env.VUE_APP_RealEnv !== 'test') {
|
|
|
+if (process.env.NODE_ENV === 'production' && process.env.VUE_APP_RealEnv !== 'alyTest') {
|
|
|
window.addEventListener('deviceready', function() {
|
|
|
new Vue({
|
|
|
router,
|