Skip to content

Commit

Permalink
fix: 修复编辑文章页面封面字段的处理逻辑;保持表单状态
Browse files Browse the repository at this point in the history
  • Loading branch information
Redish101 committed Feb 7, 2025
1 parent 289911f commit 735ea41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dashboard/src/pages/article/edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const EditArticlePage = () => {
title: data["data"]["title"],
desc: data["data"]["desc"],
slug: data["data"]["slug"],
cover: data["data"]["cover"] || "",
cover: data["data"]["cover"],
draft: data["data"]["draft"],
});
} else {
Expand Down Expand Up @@ -148,7 +148,7 @@ const EditArticlePage = () => {
title="文章信息"
onClose={() => setDrawerOpen(false)}
>
<ProForm onFinish={handleDrawerFormFinish}>
<ProForm onFinish={handleDrawerFormFinish} preserve={true}>
<ProFormText
label="标题"
name="title"
Expand Down

0 comments on commit 735ea41

Please sign in to comment.