diff --git a/components/i/library/create.vue b/components/i/library/create.vue index c47b093b3013226508156dd56a71b7c879581f6d..564c83ea5bcfad6a4233a5e6c7873e0a979a8540 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 6ba32c09eade22515211e4dad80fbfdc2a343454..57f5810ee4895367bb4fec7bef0def7283afd43d 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,