diff --git a/pages/plugins/video/detail/detail.vue b/pages/plugins/video/detail/detail.vue index 73da7b4d..bf7d6d1d 100644 --- a/pages/plugins/video/detail/detail.vue +++ b/pages/plugins/video/detail/detail.vue @@ -542,6 +542,14 @@ this.update_display_data(); setTimeout(() => { + //#ifdef H5 + // 更新页面标题 + const current_video = this.video_data_list.find(item => item.id == id); + if (current_video && current_video.title) { + document.title = current_video.title; + } + //#endif + // // 更新分享信息 this.update_share_info(this.display_video_list[this.current_index]); @@ -620,6 +628,12 @@ // 替换URL路径,保持查询参数不变 const pathname = location.href.split('?')[0]; history.replaceState(null, '', pathname + url.search); + + // 更新页面标题 + const current_video = this.video_data_list.find(item => item.id == id); + if (current_video && current_video.title) { + document.title = current_video.title; + } //#endif const index = this.video_data_list.findIndex(item => item.id == id); diff --git a/pages/plugins/video/index/index.vue b/pages/plugins/video/index/index.vue index 83929c83..8095c213 100644 --- a/pages/plugins/video/index/index.vue +++ b/pages/plugins/video/index/index.vue @@ -16,6 +16,10 @@ + + + +