nineya / halo-theme-dream2.0

适配halo2.x的dream主题
MIT License
144 stars 33 forks source link

bug:置顶功能失效 #151

Open aquasofts opened 3 weeks ago

aquasofts commented 3 weeks ago

是什么 Halo 版本出现了此问题?

2.18.1

使用的 Dream 版本是多少?

1.3.2

在线博客地址

www.mosior.com

BUG 内容

使用置顶功能会导致文章从主页面消失。目前已排除所有插件问题 image

相关 Console 日志输出

www.mosior.com/:8 

        GET https://www.mosior.com/sw.min.js?mew=1.2.1&concurrent=true&cdn=https://unpkg.com,https://cdn.jsdelivr.net/npm,https://npm.elemecdn.com net::ERR_ABORTED 404 (Not Found)
www.mosior.com/:1  Refused to execute script from 'https://www.mosior.com/sw.min.js?mew=1.2.1&concurrent=true&cdn=https://unpkg.com,https://cdn.jsdelivr.net/npm,https://npm.elemecdn.com' because its MIME type ('application/problem+json') is not executable, and strict MIME type checking is enabled.
[新] 通过在 Microsoft Edge 中使用 Copilot 来解释控制台错误: 在上面

         以说明错误。
        了解更多信息
        不再显示
busuanzi.pure.mini.js:1 

        Third-party cookie will be blocked in future Microsoft Edge versions as part of unpartitioned third-party cookie deprecation.
busuanzi.ibruce.info/busuanzi?jsonpCallback=BusuanziCallback_432818929041:1 

        Third-party cookie will be blocked in future Microsoft Edge versions as part of unpartitioned third-party cookie deprecation.

附加信息

halo-log-2024-08-27 00_22.log

aquasofts commented 1 week ago

现在网页中置顶功能正常不是找到绕过bug的方法了,是我回退版本了!

mjsoftking commented 1 week ago

2.19.2没试出来

mjsoftking commented 1 week ago

建议关闭sw优化,你的sw没有正确配置

aquasofts commented 1 week ago

你好!我已经注意到我的Service Worker配置不正确,在我重新配置SW并更新Halo至2.19.2版本后,问题依旧存在!

准确说的话,只有当文章没有选中背景图且关闭随机背景图功能时,该问题就会被触发。

以下是我的控制台输出信息。

Third-party cookie will be blocked in future Microsoft Edge versions as part of unpartitioned third-party cookie deprecation. busuanzi:1

    Third-party cookie will be blocked in future Microsoft Edge versions as part of unpartitioned third-party cookie deprecation.
mjsoftking commented 1 week ago

image 取消默认的封面图,还是可以显示的,这个地方我的主题和此主题应该是一样的,我没有特殊修改过。

Third-party cookie will be blocked in future Microsoft Edge versions as part of unpartitioned third-party cookie deprecation. busuanzi:1

这个问题是浏览器的,浏览器设置允许第三方cookie就不会显示了