hexo-theme-redefine icon indicating copy to clipboard operation
hexo-theme-redefine copied to clipboard

[BUG] 文章加密与 Swup 冲突导致部分 js 无法正常调用

Open LynxCatTheThird opened this issue 1 year ago • 1 comments

提交 Issue 前检查清单

Bug 描述

https://github.com/LynxCatTheThird/web-v6/blob/main/_config.redefine.yml https://github.com/LynxCatTheThird/web-v6/blob/main/_config.yml 网站:https://web-v6-tester.vercel.app/ ,文章密码 114514 疑似文章加密与 Swup 冲突导致部分 js 无法正常调用,进一步引起部分页面不渲染。

复现方法

  1. _config.redefine.ymlsingle_page: true
  2. post1.mdpassword: 114514
  3. hexo server
  4. 从 Home 中点入 post1
  5. 发现代码框没有复制按钮、Mermaid 未正常渲染

预期结果

输入密码后这些 js 能够正常运行,并渲染出页面。

截图

image image

电脑操作系统

ArchLinux

浏览器

Google Chrome

版本

126.0.6478.126(正式版本)

LynxCatTheThird avatar Jul 14 '24 14:07 LynxCatTheThird

我这边是输入密码后,自动打开了页面,然后页面还是提示需要输入密码

angelop007 avatar Jul 18 '24 10:07 angelop007

主题 v2.7.0 已发布,请前往更新 https://github.com/EvanNotFound/hexo-theme-redefine/releases

EvanNotFound avatar Aug 31 '24 22:08 EvanNotFound