feat: WS sends selected_game_id on connect, gear indicator auto-adapts to game mapping (Forza/AC/iRacing)
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user