From 536008d98187084841d14b4ee4bac958326e0463 Mon Sep 17 00:00:00 2001 From: DebugIsFalse <511418503@qq.com> Date: Thu, 30 May 2024 15:54:17 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E6=B7=BB=E5=8A=A0=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=94=B6=E8=97=8F=E5=A4=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/i/library/create.vue | 18 +++++++++++++++--- composables/useFavorites.js | 4 ++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/components/i/library/create.vue b/components/i/library/create.vue index c47b093..564c83e 100644 --- a/components/i/library/create.vue +++ b/components/i/library/create.vue @@ -41,7 +41,9 @@ @@ -50,13 +52,23 @@ diff --git a/composables/useFavorites.js b/composables/useFavorites.js index 6ba32c0..57f5810 100644 --- a/composables/useFavorites.js +++ b/composables/useFavorites.js @@ -1,6 +1,6 @@ export default () => { // 创建及修改收藏夹 - const setAndUpdateFavorites = (body) => { + const setOrUpdateFavorites = async (body) => { /* * id number 非必须 有ID参数是修改,没有ID则为新增 * name string 非必须 @@ -66,7 +66,7 @@ export default () => { } return { getFavorites, - setAndUpdateFavorites, + setOrUpdateFavorites, deleteFavorite, saveFavorite, findFavorite, -- GitLab