fix member opus jump

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-18 12:52:20 +08:00
parent 391d862b17
commit 8157dbc530

View File

@@ -160,7 +160,7 @@ class _MemberHomeState extends State<MemberHome>
_videoHeader(
title: '专栏',
param: 'contribute',
param1: 'article',
param1: 'opus',
count: res.article!.count!,
),
SliverGrid(
@@ -256,7 +256,7 @@ class _MemberHomeState extends State<MemberHome>
int index =
_ctr.tab2!.indexWhere((item) => item.param == param);
if (index != -1) {
if (['video', 'article', 'audio'].contains(param1)) {
if (const ['video', 'opus', 'audio'].contains(param1)) {
List<SpaceTabItem> items = _ctr.tab2!
.firstWhere((item) => item.param == param)
.items!;