From 1346700c35c2dd46d4d9b7d79b73e93354612a59 Mon Sep 17 00:00:00 2001 From: alikia2x Date: Sun, 30 Mar 2025 08:02:36 +0800 Subject: [PATCH] improve: search bar supports bvid --- packages/frontend/src/components/SearchBox.svelte | 4 +--- packages/frontend/src/pages/song/[id]/info.astro | 6 +----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/frontend/src/components/SearchBox.svelte b/packages/frontend/src/components/SearchBox.svelte index e23c47f..52d8a1a 100644 --- a/packages/frontend/src/components/SearchBox.svelte +++ b/packages/frontend/src/components/SearchBox.svelte @@ -16,9 +16,7 @@ const input = event.target as HTMLInputElement; const value: string = input.value.trim(); if (!value) return; - if (value.startsWith("av")) { - window.location.href = `/song/${value}/info`; - } + window.location.href = `/song/${value}/info`; } } diff --git a/packages/frontend/src/pages/song/[id]/info.astro b/packages/frontend/src/pages/song/[id]/info.astro index 20af910..9c0ed0a 100644 --- a/packages/frontend/src/pages/song/[id]/info.astro +++ b/packages/frontend/src/pages/song/[id]/info.astro @@ -137,11 +137,7 @@ interface Snapshot { {videoInfo?.created_at ? format(new Date(videoInfo.created_at), 'yyyy-MM-dd HH:mm:ss', { locale: zhCN }) : '-'} - 状态 - {videoInfo?.status} - - - 封面 URL + 封面 {videoInfo?.cover_url ? videoInfo.cover_url : '-'}