From 7b4ccc44afc8a1c533da54ca7aadbdcee2f928be Mon Sep 17 00:00:00 2001 From: aa89227 Date: Thu, 13 Jun 2024 13:29:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=BE=A9=20css=20isolation=20?= =?UTF-8?q?=E5=A4=B1=E6=95=88=E7=9A=84=E5=95=8F=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Clients/Monopoly.Clients.Web/Pages/DevPage.razor.cs | 6 +++--- Clients/Monopoly.Clients.Web/wwwroot/index.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Clients/Monopoly.Clients.Web/Pages/DevPage.razor.cs b/Clients/Monopoly.Clients.Web/Pages/DevPage.razor.cs index b7b75ed..486d7c2 100644 --- a/Clients/Monopoly.Clients.Web/Pages/DevPage.razor.cs +++ b/Clients/Monopoly.Clients.Web/Pages/DevPage.razor.cs @@ -6,8 +6,8 @@ namespace Client.Pages; public partial class DevPage { - private List _players = []; - private List _rooms = []; + private readonly List _players = []; + private readonly List _rooms = []; private string PlayerName { get; set; } = Guid.NewGuid().ToString(); private DevPlayer? SelectedPlayer { get; set; } private DevPlayer? HostToCreateRoom { get; set; } @@ -71,7 +71,7 @@ private async Task CreateRoomAsync() PlayersToCreateRoom.Clear(); } - private string ReadyRoomUrl(DevPlayer devPlayer, DevRoom devRoom) + private static string ReadyRoomUrl(DevPlayer devPlayer, DevRoom devRoom) { // navigate to {devRoom.Url}?token={devPlayer.Token.RowData} return $"{devRoom.Url}?token={devPlayer.Token.RawData}"; diff --git a/Clients/Monopoly.Clients.Web/wwwroot/index.html b/Clients/Monopoly.Clients.Web/wwwroot/index.html index 129e3c3..c507f29 100644 --- a/Clients/Monopoly.Clients.Web/wwwroot/index.html +++ b/Clients/Monopoly.Clients.Web/wwwroot/index.html @@ -7,7 +7,7 @@ - +