mod: pass tag

This commit is contained in:
bggRGjQaUbCoE
2024-10-07 09:40:11 +08:00
parent 1fd3d8ffe9
commit 327044d17c
2 changed files with 5 additions and 2 deletions

View File

@@ -86,7 +86,9 @@ class VideoIntroController extends GetxController {
super.onInit();
userInfo = userInfoCache.get('userInfoCache');
try {
heroTag = Get.arguments['heroTag'];
if (heroTag.isEmpty) {
heroTag = Get.arguments['heroTag'];
}
bvid = Get.parameters['bvid']!;
} catch (_) {}
if (Get.arguments.isNotEmpty) {

View File

@@ -61,7 +61,8 @@ class _VideoIntroPanelState extends State<VideoIntroPanel>
// heroTag = Get.arguments['heroTag'];
// }
heroTag = widget.heroTag;
videoIntroController = Get.put(VideoIntroController(), tag: heroTag);
videoIntroController = Get.put(VideoIntroController(), tag: heroTag)
..heroTag = heroTag;
// _futureBuilderFuture = videoIntroController.queryVideoIntro();
videoIntroController.videoDetail.listen((value) {
videoDetail = value;