From 2705fc35d09073d10e9d2eb3607e1bfa641c35b6 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 20 Feb 2023 14:30:18 +0800 Subject: [PATCH] perf: default editor's toc supports showing empty states (#864) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind improvement #### What this PR does / why we need it: 默认编辑器的大纲在没有内容的时候支持显示空状态的提示。 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/3335 #### Screenshots: image #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note Console 端默认编辑器的大纲列表支持显示空状态 ``` --- src/components/editor/DefaultEditor.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/editor/DefaultEditor.vue b/src/components/editor/DefaultEditor.vue index 52f077446..a432d95cf 100644 --- a/src/components/editor/DefaultEditor.vue +++ b/src/components/editor/DefaultEditor.vue @@ -532,7 +532,7 @@ watch(
-
    +
    +
    + 暂无大纲 +