Closed ListenWaves closed 2 weeks ago
希望能帮忙看看,谢谢 补充 点入文章后代码框头不显示 刷新后显示
相关配置如下 menu: 主页: / || fas fa-home 归档: /archives/ || fas fa-archive 标签: /tags/ || fas fa-tags 分类: /categories/ || fas fa-folder-open
友链: /link/ || fas fa-link
highlight_theme: darker # darker / pale night / light / ocean / false highlight_height_limit: false # unit: px code_word_wrap: false
highlight_theme_macStyle: false # use mac style highlight_copy: true # copy button highlight_lang: true # show the code language highlight_shrink: false # true: shrink the code blocks / false: expand the code blocks | none: expand code blocks and hide the button highlight_fullpage: true # true: add button to toggle full page
pjax: enable: true exclude:
aplayerInject: enable: true per_page: true
hexo配置为 aplayer: meting: true asset_inject: false
hexo cl hexo g hexo d 三连不能解决上述问题
应该是 bug
你修改主题 themes\butterfly\layout\includes\third-party\aplayer.pug
link(rel='stylesheet' href=url_for(theme.asset.aplayer_css) media="print" onload="this.media='all'")
script(src=url_for(theme.asset.aplayer_js))
script(src=url_for(theme.asset.meting_js))
if theme.pjax.enable
script.
(() => {
const destroyAplayer = () => {
if (window.aplayers) {
for (let i = 0; i < window.aplayers.length; i++) {
if (!window.aplayers[i].options.fixed) {
window.aplayers[i].destroy()
}
}
}
}
const runLoadMeting = () => {
typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting()
}
btf.addGlobalFn('pjaxSend', destroyAplayer, 'destroyAplayer')
btf.addGlobalFn('pjaxComplete', loadMeting, 'runLoadMeting')
})()
应该可以解决
或者先不用 aplayer 等更新
解决了,谢谢!
使用的 Butterfly 版本? | What version of Butterfly are you use?
4.13.0
是否修改过主题文件? || Has the theme files been modified?
是 (Yes)
使用的瀏覽器? || What browse are you using?
Edge
使用的系統? || What operating system are you using?
Windows
依賴插件 | Package dependencies Information
問題描述 | Describe the bug
导航栏图标点击一次后即消失 刷新后出现 点击后又消失 控制台报错如下
出現問題網站 | Website
https://listenwaves.github.io/