feat: 处理nuxt部分样式问题 & 跳转问题

This commit is contained in:
Tim
2025-08-08 11:24:52 +08:00
parent 2b1958a603
commit 44daa255c8
8 changed files with 107 additions and 108 deletions

View File

@@ -26,7 +26,7 @@ export default {
components: { HeaderComponent, MenuComponent, GlobalPopups },
data() {
return {
menuVisible: process.client ? window.innerWidth > 768 : false
menuVisible: true
}
},
computed: {
@@ -45,7 +45,9 @@ export default {
}
},
async mounted() {
// placeholder for future global initializations
if (typeof window !== 'undefined') {
this.menuVisible = window.innerWidth > 768
}
},
methods: {}
}