fix: outline not displayed when first entering the editor. (#3773)

#### What type of PR is this?
/kind bug
/area console

#### What this PR does / why we need it:
为默认编辑器侦听器增加 `immediate` 属性,使其在创建之后立即执行,生成目录。

#### Which issue(s) this PR fixes:
Fixes #3769 

#### Special notes for your reviewer:
打开已经存在并且具有标题的文章/页面,查看大纲是否正常生成。

#### Does this PR introduce a user-facing change?
```release-note
修复文章/页面已有内容重新编辑时,无法立即显示大纲的问题。
```
pull/3779/head^2
Li 2023-04-18 14:34:57 +08:00 committed by GitHub
parent 0c3e5a760a
commit 01f66cb3b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -531,6 +531,9 @@ watch(
handleGenerateTableOfContent();
});
}
},
{
immediate: true,
}
);
</script>