Spaces:
Running
Running
fix: Live page now only shows long_only strategy like Leaderboard
Browse files- src/views/LiveView.vue +2 -1
src/views/LiveView.vue
CHANGED
|
@@ -153,10 +153,11 @@ const signedPct = (p) => `${(p >= 0 ? '+' : '−')}${Math.abs(p * 100).toFixed(2
|
|
| 153 |
const score = (row) => (typeof row.balance === 'number' ? row.balance : -Infinity)
|
| 154 |
const profitOf = (c) => (typeof c?.profitUsd === 'number' ? c.profitUsd : ((c?.balance ?? 0) - 100000))
|
| 155 |
|
| 156 |
-
/* rows for selected asset (exclude vanilla/vinilla) */
|
| 157 |
const filteredRows = computed(() =>
|
| 158 |
(rowsRef.value || []).filter(r => {
|
| 159 |
if (r.asset !== asset.value) return false
|
|
|
|
| 160 |
const name = (r?.agent_name || '').toLowerCase()
|
| 161 |
return !EXCLUDED_AGENT_NAMES.has(name)
|
| 162 |
})
|
|
|
|
| 153 |
const score = (row) => (typeof row.balance === 'number' ? row.balance : -Infinity)
|
| 154 |
const profitOf = (c) => (typeof c?.profitUsd === 'number' ? c.profitUsd : ((c?.balance ?? 0) - 100000))
|
| 155 |
|
| 156 |
+
/* rows for selected asset (exclude vanilla/vinilla) - only show long_only strategy like leaderboard */
|
| 157 |
const filteredRows = computed(() =>
|
| 158 |
(rowsRef.value || []).filter(r => {
|
| 159 |
if (r.asset !== asset.value) return false
|
| 160 |
+
if (r.strategy !== 'long_only') return false // 只显示 Aggressive Long Only 策略
|
| 161 |
const name = (r?.agent_name || '').toLowerCase()
|
| 162 |
return !EXCLUDED_AGENT_NAMES.has(name)
|
| 163 |
})
|