From 1185af5a8794545e73abc33a4d7b473f331aa8fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=93=E7=9D=A1=E4=B8=8D=E6=B6=88=E6=AE=8B=E9=85=92?= <49932926+CodeNoobLH@users.noreply.github.com> Date: Fri, 13 Jun 2025 17:00:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E6=9B=B4=E6=96=B0=E5=85=B3?= =?UTF-8?q?=E6=B3=A8=E5=88=97=E8=A1=A8=E5=B9=B6=E4=BC=98=E5=8C=96=E5=85=B3?= =?UTF-8?q?=E6=B3=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复了关注后不能点击成本的bug --- frontend/src/components/stock.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/stock.vue b/frontend/src/components/stock.vue index c4db16c..1b958cd 100644 --- a/frontend/src/components/stock.vue +++ b/frontend/src/components/stock.vue @@ -226,7 +226,7 @@ onMounted(() => { GetFollowList(currentGroupId.value).then(result => { - followList.value = result + followList.value = result for (const followedStock of result) { if(followedStock.StockCode.startsWith("us")){ followedStock.StockCode="gb_"+ followedStock.StockCode.replace("us", "").toLowerCase() @@ -459,6 +459,9 @@ function AddStock(){ if(result==="关注成功"){ stocks.value.push(data.code) message.success(result) + GetFollowList(currentGroupId.value).then(result => { + followList.value = result + }) monitor(); }else{ message.error(result)