From 13323ed12352dbe6c65f65279a39b10c7c6b8cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E6=A2=93=E9=94=9F?= <1640384813@qq.com> Date: Wed, 8 May 2024 21:36:01 +0800 Subject: [PATCH] DeBug561-WanZiKun MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复bug561前后切换文章无法正常显示生词高光的功能 --- app/templates/userpage_get.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/templates/userpage_get.html b/app/templates/userpage_get.html index edb8bf2..b47fb99 100644 --- a/app/templates/userpage_get.html +++ b/app/templates/userpage_get.html @@ -232,6 +232,9 @@ update(data['today_article']); check_pre(data['visited_articles']); check_next(data['result_of_generate_article']); + // 在加载新文章后调用高亮函数 + toggleHighlighting(); + } } }); @@ -245,6 +248,8 @@ if(data['today_article']){ update(data['today_article']); check_pre(data['visited_articles']); + // 在加载新文章后调用高亮函数 + toggleHighlighting(); } } });