fix: Editor页面调用JS阶段错误
This commit is contained in:
parent
10cf7cd72a
commit
0f8154e968
|
@ -69,21 +69,6 @@
|
||||||
|
|
||||||
private readonly List<string> _logs = new();
|
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)
|
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||||
{
|
{
|
||||||
if (firstRender)
|
if (firstRender)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user