-
Notifications
You must be signed in to change notification settings - Fork 482
refactor: add validation for post and singlePage settings form #791
refactor: add validation for post and singlePage settings form #791
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
如果该问题在 2.0.x 中也存在,建议专门提交一个修复 bug 的 PR,并 patch 到 release-2.0 分支。 |
就是为了修改这个 bug 才这样修改。如果不重构来修复这个问题,改动可能会更大。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
As expected 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works very well.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JohnNiang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…dev/console#791) #### What type of PR is this? /kind improvement #### What this PR does / why we need it: 重构文章和自定义页面的设置表单,支持提交时验证表单。 > 因为之前的多选项卡设计导致无法同时验证所有表单,所以这个 PR 重构了表单的布局。 #### Which issue(s) this PR fixes: Fixes halo-dev#2859 #### Screenshots: ![2022-12-21 17 23 22](https://user-images.githubusercontent.com/21301288/208870059-5039a565-def2-4622-9a78-de30dceb4d65.gif) #### Special notes for your reviewer: 测试方式: 1. 测试在内容编辑页面和列表打开文章和自定义页面的设置表单。 2. 检查表单验证是否有效。 #### Does this PR introduce a user-facing change? ```release-note 重构 Console 端文章和自定义页面的设置表单布局,支持提交时验证表单。 ```
What type of PR is this?
/kind improvement
What this PR does / why we need it:
重构文章和自定义页面的设置表单,支持提交时验证表单。
Which issue(s) this PR fixes:
Fixes halo-dev/halo#2859
Screenshots:
Special notes for your reviewer:
测试方式:
Does this PR introduce a user-facing change?