mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 专栏评论展示跟随设置
This commit is contained in:
@@ -22,9 +22,9 @@ class HtmlRenderController extends GetxController {
|
|||||||
RxInt acount = 0.obs;
|
RxInt acount = 0.obs;
|
||||||
final ScrollController scrollController = ScrollController();
|
final ScrollController scrollController = ScrollController();
|
||||||
|
|
||||||
ReplySortType _sortType = ReplySortType.time;
|
late ReplySortType _sortType;
|
||||||
RxString sortTypeTitle = ReplySortType.time.titles.obs;
|
late RxString sortTypeTitle;
|
||||||
RxString sortTypeLabel = ReplySortType.time.labels.obs;
|
late RxString sortTypeLabel;
|
||||||
Box setting = GStrorage.setting;
|
Box setting = GStrorage.setting;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -33,6 +33,15 @@ class HtmlRenderController extends GetxController {
|
|||||||
id = Get.parameters['id']!;
|
id = Get.parameters['id']!;
|
||||||
dynamicType = Get.parameters['dynamicType']!;
|
dynamicType = Get.parameters['dynamicType']!;
|
||||||
type = dynamicType == 'picture' ? 11 : 12;
|
type = dynamicType == 'picture' ? 11 : 12;
|
||||||
|
int defaultReplySortIndex =
|
||||||
|
setting.get(SettingBoxKey.replySortType, defaultValue: 0) as int;
|
||||||
|
if (defaultReplySortIndex == 2) {
|
||||||
|
setting.put(SettingBoxKey.replySortType, 0);
|
||||||
|
defaultReplySortIndex = 0;
|
||||||
|
}
|
||||||
|
_sortType = ReplySortType.values[defaultReplySortIndex];
|
||||||
|
sortTypeLabel = _sortType.labels.obs;
|
||||||
|
sortTypeTitle = _sortType.titles.obs;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 请求动态内容
|
// 请求动态内容
|
||||||
|
|||||||
Reference in New Issue
Block a user