mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-03 08:27:35 +08:00
feat: 处理nuxt部分样式问题 & 跳转问题
This commit is contained in:
@@ -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: {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user