From 3e3952f614b8e8f08256438e4dcd5b69d2e419e1 Mon Sep 17 00:00:00 2001 From: wzrove Date: Sun, 5 Mar 2023 19:04:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=93=E5=BC=80=E5=B7=B2=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E7=9A=84StackEdit=E7=BC=96=E8=BE=91=E5=99=A8=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E7=9A=84=E6=96=87=E7=AB=A0=E5=86=85=E5=AE=B9=E7=A9=BA?= =?UTF-8?q?=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/contents/posts/PostEditor.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/contents/posts/PostEditor.vue b/src/modules/contents/posts/PostEditor.vue index ca3812d5..c849a545 100644 --- a/src/modules/contents/posts/PostEditor.vue +++ b/src/modules/contents/posts/PostEditor.vue @@ -212,6 +212,7 @@ const handleFetchContent = async () => { const { data } = await apiClient.post.fetchPostHeadContent({ name: formState.value.post.metadata.name, }); + formState.value.content = Object.assign(formState.value.content, data); // get editor provider if (!currentEditorProvider.value) { @@ -253,11 +254,8 @@ const handleFetchContent = async () => { }, }); } - await nextTick(); } - - formState.value.content = Object.assign(formState.value.content, data); }; const handleOpenSettingModal = async () => {