diff --git a/app/templates/userpage_get.html b/app/templates/userpage_get.html index 68997ef..6e5d84c 100644 --- a/app/templates/userpage_get.html +++ b/app/templates/userpage_get.html @@ -157,6 +157,8 @@ update(data['today_article']); check_pre(data['visited_articles']); check_next(data['result_of_generate_article']); + // 在加载新文章后调用高亮函数 + toggleHighlighting(); } } }); @@ -170,6 +172,8 @@ if(data['today_article']){ update(data['today_article']); check_pre(data['visited_articles']); + // 在加载新文章后调用高亮函数 + toggleHighlighting(); } } });