From 5f9c3e2587acd3b96c329c439892c941b2ef699e Mon Sep 17 00:00:00 2001 From: menxipeng Date: Mon, 27 Oct 2025 23:16:07 +0800 Subject: [PATCH] tz --- ruoyi-ui/src/views/content/category/index.vue | 21 ++++--------------- .../src/views/content/recommend/index.vue | 14 ++++--------- 2 files changed, 8 insertions(+), 27 deletions(-) diff --git a/ruoyi-ui/src/views/content/category/index.vue b/ruoyi-ui/src/views/content/category/index.vue index 49b4709..f7008fe 100644 --- a/ruoyi-ui/src/views/content/category/index.vue +++ b/ruoyi-ui/src/views/content/category/index.vue @@ -112,19 +112,6 @@
-
- 音乐类型: - - - - -
音乐名称: - - - - - - - 搜索 重置 @@ -259,7 +252,7 @@ export default { pageNum: 1, pageSize: 10, name: null, - musicType: '' + musicType: 'ordinary' // 默认只获取普通音乐 }, bindLoading: false }; @@ -463,6 +456,7 @@ export default { // 绑定音乐 handleBindMusic(row) { this.musicQueryParams.categoryId = row.id; + this.musicQueryParams.musicType = 'ordinary'; // 只获取普通音乐 this.selectedMusicIds = []; // 重置选中的音乐 this.boundMusicIds = []; // 重置已绑定的音乐ID this.getBoundMusic(row.id); // 先获取已绑定的音乐 @@ -538,8 +532,8 @@ export default { /** 重置音乐搜索 */ resetMusicQuery() { this.resetForm("musicQueryForm"); - // 重置后保持musicType为空(显示全部) - this.musicQueryParams.musicType = ''; + // 重置后仍然只显示普通音乐 + this.musicQueryParams.musicType = 'ordinary'; this.handleMusicQuery(); } }