mirror of https://github.com/halo-dev/halo-admin
fix: 打开已保存的StackEdit编辑器编辑的文章内容空白
parent
de2612da27
commit
3e3952f614
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in New Issue