code:
header.vue
:
export default {
data(){
return {
msgShadeHeight: window.innerHeight, // 消息遮罩,点击消息旁边生成的遮罩
//...
}
},
}
could u please tell me whats the correct way to use "window" in data ? thank u very much!
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1857">#c1857</a>)</em></sub></div>