moefyit / vuepress-plugin-meting

:cake: A simple plugin connect APlayer, Meting and VuePress.
https://moefyit.github.io/moefy-vuepress/
MIT License
32 stars 2 forks source link

Error in mounted hook: "ReferenceError: __MOBILE_OPTIONS is not defined" #37

Closed yokefellow closed 1 year ago

yokefellow commented 1 year ago

version: 0.3.2 MetingGlobal.vue 第54行,__MOBILE_OPTIONS少了个下划线后缀

function hide_mini_player() {
  if (!__MOBILE_OPTIONS.cover) {
    body.childNodes.forEach((child) => {
      child.style.display = 'none'
    })
    body.style.background = 'transparent'
    btn.style.display = 'block'
    btn.style.right = 'auto'
  }
  if (!__MOBILE_OPTIONS__.lrc) {
    lrc.style.display = 'none'
  }
  isShow = false
}
SigureMo commented 1 year ago

感谢~已经修复并发布 0.3.3 版本~