fix: 修复了昵称可以为空的问题
This commit is contained in:
parent
a7e784ba65
commit
02f7ca63dc
|
@ -1,6 +1,7 @@
|
||||||
@using Frontend.Models
|
@using Frontend.Models
|
||||||
@using Katheryne.Abstractions
|
@using Katheryne.Abstractions
|
||||||
@inject IJSRuntime JsRuntime
|
@inject IJSRuntime JsRuntime
|
||||||
|
@inject IMessageService MessageService
|
||||||
|
|
||||||
<div class="content-zone">
|
<div class="content-zone">
|
||||||
<div class="chat-zone" id="chat-scroll-zone">
|
<div class="chat-zone" id="chat-scroll-zone">
|
||||||
|
@ -115,6 +116,12 @@
|
||||||
|
|
||||||
private void SetUsernameOkClicked()
|
private void SetUsernameOkClicked()
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty(_username))
|
||||||
|
{
|
||||||
|
MessageService.Warning("昵称不能为空");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_setUsernameVisible = false;
|
_setUsernameVisible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user