From 14de40bbe12e1e1679a60a58e0d501625d0e7ff2 Mon Sep 17 00:00:00 2001 From: Lete Date: Thu, 28 Apr 2022 19:02:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(twikoo):=20=E6=89=80=E6=9C=89=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=83=BD=E8=AF=B4=E5=90=8C=E4=B8=80=E4=B8=AApath?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/_plugins/comments/twikoo/script.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/_plugins/comments/twikoo/script.ejs b/layout/_plugins/comments/twikoo/script.ejs index fb8fbffab..69f54fa71 100644 --- a/layout/_plugins/comments/twikoo/script.ejs +++ b/layout/_plugins/comments/twikoo/script.ejs @@ -10,7 +10,7 @@ let placeholder = pdata.commentPlaceholder || "<%= theme.comments.twikoo.placeholder %>" || ""; if (path.length == 0) { let defaultPath = '<%= theme.comments.twikoo.path %>'; - path = defaultPath || "decodeURI(window.location.pathname)"; //神奇的pathname 没错,twikoo这里就是字符串,不要乱动了 + path = defaultPath || decodeURI(window.location.pathname); } twikoo.init(Object.assign(Object.assign(<%- JSON.stringify(theme.comments.twikoo) %>, { el: '#twikoo_container',