Skip to content

Commit a5e0a08

Browse files
authored
doc(HikVision): update HikVision document (#7337)
1 parent ad34783 commit a5e0a08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/BootstrapBlazor.Server/Components/Samples/HikVisions.razor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ private async Task OnLogin()
4848

4949
private async Task OnLogout()
5050
{
51+
_analogChannels.Clear();
5152
_loginStatus = true;
5253
_logoutStatus = true;
54+
_startRealPlayStatus = true;
55+
_stopRealPlayStatus = true;
5356
await _hikVision.Logout();
5457
}
5558

@@ -102,6 +105,7 @@ await SwalService.Show(new SwalOption()
102105

103106
private Task OnLoginAsync()
104107
{
108+
_loginStatus = true;
105109
_logoutStatus = !_loginStatus;
106110
_startRealPlayStatus = _logoutStatus;
107111
_stopRealPlayStatus = !_startRealPlayStatus;

0 commit comments

Comments
 (0)