feat: WS sends selected_game_id on connect, gear indicator auto-adapts to game mapping (Forza/AC/iRacing)

This commit is contained in:
2026-07-25 16:29:00 +08:00
parent 636801b6a3
commit 7959d911e6
3 changed files with 68 additions and 19 deletions
+2 -1
View File
@@ -136,7 +136,8 @@ const PageDashboard = {
},
_openDashboard(themeId) {
const url = `${location.origin}/dashboard/${themeId}`;
const gameParam = this._selectedGameId ? `?game=${this._selectedGameId}` : '';
const url = `${location.origin}/dashboard/${themeId}${gameParam}`;
window.open(url, '_blank');
navigator.clipboard.writeText(url).then(() => {
Toast.show('链接已复制,可在局域网设备访问', 'success');