diff --git a/static/js/pages/market.js b/static/js/pages/market.js index 334b837..dba511c 100644 --- a/static/js/pages/market.js +++ b/static/js/pages/market.js @@ -251,12 +251,12 @@ const PageMarket = { const upS = Array.isArray(scenes) ? scenes.filter(s => !s.is_builtin && !(s.id||'').match(/^[a-f0-9]{6}__/)) : []; let h = ''; if (upD.length) { - h += '
本地仪表盘
'; - h += upD.map(d => '
'+(d.icon||'📊')+' '+d.name+'
').join(''); + h += '
本地仪表盘 ('+upD.length+')
'; + h += '
' + upD.map(d => '
'+(d.icon||'📊')+' '+d.name+'
').join('') + '
'; } if (upS.length) { - h += '
本地场景
'; - h += upS.map(s => '
🎬 '+s.name+'
').join(''); + h += '
本地场景 ('+upS.length+')
'; + h += '
' + upS.map(s => '
🎬 '+s.name+'
').join('') + '
'; } list.innerHTML = h || '

没有可发布的内容

'; list.querySelectorAll('.pub-dash-btn').forEach(btn => btn.addEventListener('click', async () => {