diff --git a/app/web/static/index.html b/app/web/static/index.html index 5a6eb5a..65df84c 100644 --- a/app/web/static/index.html +++ b/app/web/static/index.html @@ -3528,11 +3528,13 @@ createApp({ ((up.sell_actions && up.sell_actions.items) || []).forEach(x => push(x.ts_code)); ((up.mr && up.mr.watch) || []).forEach(x => push(x.ts_code)); ((up.mr && up.mr.avoid) || []).forEach(x => push(x.ts_code)); - const codes = [...set].filter(Boolean); - if (!codes.length) return; - const d = await call('get', '/api/names?codes=' + encodeURIComponent(codes.join(','))); - const names = (d && (d.names || (d.data && d.data.names))) || null; - if (names) nameMap.value = { ...nameMap.value, ...names }; + const codes = [...set].filter(c=>c && (!nameMap.value[c]?.name || nameMap.value[c].name===c)); + // 全天信号可覆盖数千证券,名称分批读取,避免长网址导致整批失败。 + for(let i=0;i (positions.value || []).filter(p => (p.total_qty || 0) > 0));