mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: disable search all
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -102,7 +102,7 @@ class SearchHttp {
|
||||
case SearchType.article:
|
||||
data = SearchArticleModel.fromJson(res.data['data']);
|
||||
break;
|
||||
case SearchType.all:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return LoadingState.success(data);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// ignore_for_file: constant_identifier_names
|
||||
enum SearchType {
|
||||
all,
|
||||
// all,
|
||||
// 视频:video
|
||||
video,
|
||||
// 番剧:media_bangumi,
|
||||
@@ -25,7 +25,7 @@ enum SearchType {
|
||||
|
||||
extension SearchTypeExtension on SearchType {
|
||||
String get label => [
|
||||
'综合',
|
||||
// '综合',
|
||||
'视频',
|
||||
'番剧',
|
||||
'影视',
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import 'package:PiliPlus/pages/search/controller.dart';
|
||||
import 'package:PiliPlus/pages/search_panel/all/view.dart';
|
||||
import 'package:PiliPlus/pages/search_panel/article/view.dart';
|
||||
import 'package:PiliPlus/pages/search_panel/live/view.dart';
|
||||
import 'package:PiliPlus/pages/search_panel/pgc/view.dart';
|
||||
@@ -154,11 +153,11 @@ class _SearchResultPageState extends State<SearchResultPage>
|
||||
children: SearchType.values
|
||||
.map(
|
||||
(item) => switch (item) {
|
||||
SearchType.all => SearchAllPanel(
|
||||
tag: _tag,
|
||||
searchType: item,
|
||||
keyword: _searchResultController.keyword,
|
||||
),
|
||||
// SearchType.all => SearchAllPanel(
|
||||
// tag: _tag,
|
||||
// searchType: item,
|
||||
// keyword: _searchResultController.keyword,
|
||||
// ),
|
||||
SearchType.video => SearchVideoPanel(
|
||||
tag: _tag,
|
||||
searchType: item,
|
||||
|
||||
Reference in New Issue
Block a user