隐藏1080样式

This commit is contained in:
2023-11-10 08:52:59 +08:00
parent 8ac9b4cb08
commit 2035134967
6 changed files with 21 additions and 18 deletions

View File

@@ -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>