mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
feat(frontend): 更新关注列表并优化关注功能
- 修复了关注后不能点击成本的bug
This commit is contained in:
parent
338e371190
commit
1185af5a87
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user