mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 平板横屏且开启“优先展示评论区”后不能切分p
This commit is contained in:
@@ -443,23 +443,21 @@ class VideoIntroController extends GetxController {
|
|||||||
// 重新获取视频资源
|
// 重新获取视频资源
|
||||||
final VideoDetailController videoDetailCtr =
|
final VideoDetailController videoDetailCtr =
|
||||||
Get.find<VideoDetailController>(tag: heroTag);
|
Get.find<VideoDetailController>(tag: heroTag);
|
||||||
final RelatedController relatedCtr =
|
|
||||||
Get.find<RelatedController>(tag: heroTag);
|
|
||||||
videoDetailCtr.bvid = bvid;
|
videoDetailCtr.bvid = bvid;
|
||||||
videoDetailCtr.oid.value = aid ?? IdUtils.bv2av(bvid);
|
videoDetailCtr.oid.value = aid ?? IdUtils.bv2av(bvid);
|
||||||
videoDetailCtr.cid.value = cid;
|
videoDetailCtr.cid.value = cid;
|
||||||
videoDetailCtr.danmakuCid.value = cid;
|
videoDetailCtr.danmakuCid.value = cid;
|
||||||
videoDetailCtr.queryVideoUrl();
|
videoDetailCtr.queryVideoUrl();
|
||||||
relatedCtr.bvid = bvid;
|
// 重新请求相关视频
|
||||||
relatedCtr.queryRelatedVideo();
|
final RelatedController? relatedCtr =
|
||||||
|
Get.find<RelatedController?>(tag: heroTag);
|
||||||
|
relatedCtr?.bvid = bvid;
|
||||||
|
relatedCtr?.queryRelatedVideo();
|
||||||
// 重新请求评论
|
// 重新请求评论
|
||||||
try {
|
final VideoReplyController? videoReplyCtr =
|
||||||
/// 未渲染回复组件时可能异常
|
Get.find<VideoReplyController?>(tag: heroTag);
|
||||||
final VideoReplyController videoReplyCtr =
|
videoReplyCtr?.aid = aid;
|
||||||
Get.find<VideoReplyController>(tag: heroTag);
|
videoReplyCtr?.queryReplyList(type: 'init');
|
||||||
videoReplyCtr.aid = aid;
|
|
||||||
videoReplyCtr.queryReplyList(type: 'init');
|
|
||||||
} catch (_) {}
|
|
||||||
this.bvid = bvid;
|
this.bvid = bvid;
|
||||||
lastPlayCid.value = cid;
|
lastPlayCid.value = cid;
|
||||||
await queryVideoIntro();
|
await queryVideoIntro();
|
||||||
|
|||||||
Reference in New Issue
Block a user