From 8458b434a254107a21299cea40271a40e1ed6b1b Mon Sep 17 00:00:00 2001 From: DebugIsFalse <511418503@qq.com> Date: Thu, 30 May 2024 17:03:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=B6=E8=97=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/i/library/select.vue | 46 ++++++++++++++++++----------- components/i/search/Header.vue | 19 ++++++++++-- composables/useCollectionRequest.js | 2 +- stores/library.js | 13 ++++++-- 4 files changed, 57 insertions(+), 23 deletions(-) diff --git a/components/i/library/select.vue b/components/i/library/select.vue index 682be56..a5316fc 100644 --- a/components/i/library/select.vue +++ b/components/i/library/select.vue @@ -13,7 +13,6 @@
- {{ collection }}
- +
-
前端开发
- -
-
- -
-
后端开发
+
{{item.name}}
+
- diff --git a/components/i/search/Header.vue b/components/i/search/Header.vue index c8370e5..03407d2 100644 --- a/components/i/search/Header.vue +++ b/components/i/search/Header.vue @@ -17,7 +17,7 @@ color="gray" variant="ghost" leading-icon="i-heroicons-plus-20-solid" - label="收藏" + :label="$selectCollectionId.length > 0 ? '已收藏' : '收藏'" @click="handleOpenSelect" /> @@ -79,7 +79,10 @@