From 420a14f6d997e5f91e58f25c313b8cb2ca54a69c Mon Sep 17 00:00:00 2001 From: linxi Date: Tue, 24 Dec 2024 10:26:16 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A2826=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E5=86=9C=E6=B0=91=E5=BA=97?= =?UTF-8?q?=E9=93=BA=E6=97=A0=E6=B3=95=E5=8F=96=E6=B6=88=E6=94=B6=E8=97=8F?= =?UTF-8?q?=EF=BC=8C=E6=94=B6=E8=97=8F=E6=97=B6=E7=82=B9=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E6=9C=AA=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/farmer.js | 3 +++ pagesInn/inn/farmerStore.vue | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/api/farmer.js b/api/farmer.js index 324d8c5..34316e7 100644 --- a/api/farmer.js +++ b/api/farmer.js @@ -21,4 +21,7 @@ export function setFarmerShopCollection(data) { return request.post("/collection/farmerShop/add", data) } +export function removeFarmerShopCollection(data) { + return request.post("/collection/farmerShop/remove", data) +} diff --git a/pagesInn/inn/farmerStore.vue b/pagesInn/inn/farmerStore.vue index c7457ff..9884f6f 100644 --- a/pagesInn/inn/farmerStore.vue +++ b/pagesInn/inn/farmerStore.vue @@ -81,14 +81,14 @@ :src="webUrl + '/icon/icon-star-on.png'" mode="scaleToFill" class="icon" - @click="doneFavorite" + @click="doneFavorite(store.hasFavorite)" /> {{ store.favoriteCount }} @@ -340,7 +340,7 @@