- 搜索页UI
- 插件系统支持搜索单曲接口
- 修复音量初始化和状态
- 搜索关键词匹配优化
This commit is contained in:
lqtmcstudio
2026-02-05 23:44:51 +08:00
parent 719cacef11
commit 21b80c566b
16 changed files with 610 additions and 8 deletions

View File

@@ -17,6 +17,8 @@
type="text"
placeholder="搜索音乐、歌手、专辑..."
class="search-input"
v-model="searchQuery"
@keydown.enter="handleSearch"
/>
</div>
</div>
@@ -55,10 +57,19 @@ import { Icon } from '@iconify/vue';
const router = useRouter();
const isMaximized = ref(false);
const searchQuery = ref('');
const goBack = () => router.back();
const goForward = () => router.forward();
const handleSearch = () => {
if (!searchQuery.value.trim()) return;
router.push({
name: 'Search',
query: { q: searchQuery.value }
});
};
// Settings
const openSettings = inject<() => void>('openSettings', () => {});