Skip to content

一分钟搭建影视站,支持Docker等部署方式

fix(douban.js): 根据当前切换状态渲染豆瓣标签

shinyaeb856021cc2f
diff --git a/js/douban.js b/js/douban.js
index b653450..d571a63 100644
--- a/js/douban.js
+++ b/js/douban.js
@@ -279,6 +279,9 @@ function fetchDoubanTags() {
fetchDoubanData(movieTagsTarget)
.then(data => {
movieTags = data.tags;
+ if (doubanMovieTvCurrentSwitch === 'movie') {
+ renderDoubanTags(movieTags);
+ }
})
.catch(error => {
console.error("获取豆瓣热门电影标签失败:", error);
@@ -287,6 +290,9 @@ function fetchDoubanTags() {
fetchDoubanData(tvTagsTarget)
.then(data => {
tvTags = data.tags;
+ if (doubanMovieTvCurrentSwitch === 'tv') {
+ renderDoubanTags(tvTags);
+ }
})
.catch(error => {
console.error("获取豆瓣热门电视剧标签失败:", error);