From 997bb17cebf92448ca1e0d07d60be3235da77f0a Mon Sep 17 00:00:00 2001 From: NoSetViolin Date: Thu, 14 May 2026 16:56:18 +0800 Subject: [PATCH] feat(search): add tabbed category navigation + align NetEase result counts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace single-page layout with pill-slider tabs (单曲/专辑/歌单) under the search box, showing only one category at a time with result counts - NetEase album/playlist search limit raised from 5 to 10 to match QQ Co-Authored-By: Claude Opus 4.7 --- src/music/netease.ts | 4 +-- web/src/views/Search.vue | 77 ++++++++++++++++++++++++++++++++++++---- 2 files changed, 72 insertions(+), 9 deletions(-) diff --git a/src/music/netease.ts b/src/music/netease.ts index 4a863db..a9060b4 100644 --- a/src/music/netease.ts +++ b/src/music/netease.ts @@ -112,12 +112,12 @@ export class NeteaseProvider implements MusicProvider { params: { keywords: query, type: 1000, - limit: 5, + limit: 10, ...this.cookieParams, }, }), this.api.get("/cloudsearch", { - params: { keywords: query, type: 10, limit: 5, ...this.cookieParams }, + params: { keywords: query, type: 10, limit: 10, ...this.cookieParams }, }), ]); diff --git a/web/src/views/Search.vue b/web/src/views/Search.vue index 6d91a3d..82a976f 100644 --- a/web/src/views/Search.vue +++ b/web/src/views/Search.vue @@ -21,8 +21,31 @@
搜索中...