Commit 079bb431 authored by 毛线's avatar 毛线

save

parent 2c30bd35
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<img v-if="tabIndex === index" class="tab-img" src="https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/Rounded%20Rectangle%2019.png" alt=""> <img v-if="tabIndex === index" class="tab-img" src="https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/Rounded%20Rectangle%2019.png" alt="">
<img v-else class="tab-img" src="https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/last_game%20%E6%8B%B7%E8%B4%9D%202.png" alt=""> <img v-else class="tab-img" src="https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/last_game%20%E6%8B%B7%E8%B4%9D%202.png" alt="">
<div class="text">{{ text }}</div> <div class="text">{{ text }}</div>
<div v-if="index === 0" class="version">{{ `1.0.045` }}</div> <div v-if="index === 0" class="version">{{ `1.0.046` }}</div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -88,6 +88,8 @@ export default { ...@@ -88,6 +88,8 @@ export default {
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// return // return
} }
console.log('innerWidth', innerWidth, (innerWidth < 1024 && innerWidth < innerHeight))
console.log('innerHeight', innerHeight)
if ((innerWidth < 1024 && innerWidth < innerHeight) || (isMobile && innerWidth < innerHeight)) { if ((innerWidth < 1024 && innerWidth < innerHeight) || (isMobile && innerWidth < innerHeight)) {
this.initMobileSceen() this.initMobileSceen()
this.isMoblie = true this.isMoblie = true
......
...@@ -64,7 +64,7 @@ export const getters = { ...@@ -64,7 +64,7 @@ export const getters = {
let is_mobile = false let is_mobile = false
const { innerWidth, innerHeight, } = state const { innerWidth, innerHeight, } = state
const minWidth = 1024 const minWidth = 1024
if (innerWidth < minWidth || innerHeight < minWidth) { if (innerWidth < minWidth) {
is_mobile = true is_mobile = true
} }
return is_mobile return is_mobile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment