隐藏1080样式
This commit is contained in:
12
src/App.vue
12
src/App.vue
@@ -23,12 +23,12 @@ export default {
|
||||
...mapGetters(['showToast', 'showAlert'])
|
||||
},
|
||||
mounted () {
|
||||
const htmlStyle = document.getElementsByTagName('html')[0].style
|
||||
if (window.screen.height <= 1080) {
|
||||
htmlStyle.height = 1080
|
||||
} else {
|
||||
htmlStyle.height = 1200
|
||||
}
|
||||
// const htmlStyle = document.getElementsByTagName('html')[0].style
|
||||
// if (window.screen.height <= 1080) {
|
||||
// htmlStyle.height = 1080
|
||||
// } else {
|
||||
// htmlStyle.height = 1200
|
||||
// }
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user