diff --git a/lib/http/search.dart b/lib/http/search.dart index fe5051a5..8af783b2 100644 --- a/lib/http/search.dart +++ b/lib/http/search.dart @@ -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); diff --git a/lib/models/common/search_type.dart b/lib/models/common/search_type.dart index 00ba7d95..13cfa21c 100644 --- a/lib/models/common/search_type.dart +++ b/lib/models/common/search_type.dart @@ -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 => [ - '综合', + // '综合', '视频', '番剧', '影视', diff --git a/lib/pages/search_result/view.dart b/lib/pages/search_result/view.dart index 92fe2548..a932422e 100644 --- a/lib/pages/search_result/view.dart +++ b/lib/pages/search_result/view.dart @@ -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 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,