fix: Editor页面调用JS阶段错误

This commit is contained in:
jackfiled 2023-11-02 13:43:10 +08:00
parent 10cf7cd72a
commit 0f8154e968

View File

@ -69,21 +69,6 @@
private readonly List<string> _logs = new();
protected override async Task OnInitializedAsync()
{
Log("编辑器加载完成");
if (await GrammarStorage.RestoreGrammar())
{
await _editor.SetValue(RobotFactory.GrammarText);
Log("从浏览器中恢复成功");
}
else
{
Log("尚未设置语法");
}
await base.OnInitializedAsync();
}
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)