mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 08:38:37 +00:00
refa video params
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -6,15 +6,14 @@ import 'package:get/get.dart';
|
||||
|
||||
class RelatedController
|
||||
extends CommonListController<List<HotVideoItemModel>?, HotVideoItemModel> {
|
||||
RelatedController([this.autoQuery]);
|
||||
// 视频aid
|
||||
String bvid = Get.parameters['bvid'] ?? "";
|
||||
final bool? autoQuery;
|
||||
RelatedController({this.autoQuery = true});
|
||||
String bvid = Get.arguments['bvid'];
|
||||
final bool autoQuery;
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
if (autoQuery != false) {
|
||||
if (autoQuery) {
|
||||
queryData();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user