fix: null input

dev_self
DESKTOP-3BO4HSG\ksat 2 years ago
parent b08b5de6ff
commit 0923ccf415

@ -352,6 +352,7 @@ namespace STranslate.ViewModel
{ {
try try
{ {
if (string.IsNullOrEmpty(InputTxt.Trim())) throw new Exception("输入值为空!");
var isEng = string.Empty; var isEng = string.Empty;
IdentifyLanguage = string.Empty; IdentifyLanguage = string.Empty;
OutputTxt = "翻译中..."; OutputTxt = "翻译中...";

Loading…
Cancel
Save