fix(stock): 修复昨天因为美股逻辑导致A股关注错误(CodeNoobLH/dev)

fix(stock): 修复昨天因为美股逻辑导致A股关注错误
This commit is contained in:
SparkMemory 2025-06-25 10:25:47 +08:00 committed by GitHub
commit 6e3b9ff1f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -434,7 +434,9 @@ function AddStock() {
if (!stocks.value.includes(data.code)) {
Follow(data.code).then(result => {
if (result === "关注成功") {
if (data.code.startsWith("us")) {
data.code= "gb_" + data.code.replace("us", "").toLowerCase()
}
stocks.value.push(data.code)
message.success(result)
GetFollowList(currentGroupId.value).then(result => {