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

中文目录树 点击无法跳转

Open ioblog opened this issue 3 years ago • 5 comments

英文目录树正常,中文的目录树点击报错 post-details.js?v=5.1.4:76 Uncaught TypeError: Cannot read property 'top' of undefined at HTMLAnchorElement. (post-details.js?v=5.1.4:76) at HTMLAnchorElement.dispatch (index.js?v=2.1.3:3) at HTMLAnchorElement.r.handle (index.js?v=2.1.3:3)

ioblog avatar Aug 11 '21 02:08 ioblog

同问,而且按照网上说的改了post-details后本地链接虽然还是乱码,但是可以跳转……

DREAM-demo avatar Oct 21 '21 05:10 DREAM-demo

目前我解决了一级标题的跳转,但是二级的中文标题显示不出来。

chenwingsing avatar Dec 01 '21 12:12 chenwingsing

同文,如何解决这个问题 Uncaught TypeError: Cannot read properties of undefined (reading 'top') at HTMLAnchorElement. (post-details.js?v=5.1.4:76) at HTMLAnchorElement.dispatch (index.js?v=2.1.3:3) at HTMLAnchorElement.r.handle (index.js?v=2.1.3:3)

fge7s-7coin avatar Dec 16 '21 07:12 fge7s-7coin

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

LauArmy avatar Dec 16 '21 07:12 LauArmy

image 在 themes/next/source/js/utils.js 里添加这一行:

link.href = decodeURI(link.getAttribute('href'));

Lwenkun avatar Mar 29 '24 11:03 Lwenkun