mirror of https://github.com/halo-dev/halo
![]() #### What type of PR is this? /area ui /kind improvement /milestone 2.16.x #### What this PR does / why we need it: 重构文章的发布逻辑,以下是主要改动: 1. 如果文章未发布,点击文章设置的发布按钮时,会先保存文章。 2. 在文章列表的操作菜单中添加发布 / 取消发布的选项。 3. 重构文章设置中,发布 / 取消发布按钮的显示条件。 4. 优化文章设置对话框的显示条件,减少不必要的渲染开销和请求。 #### Special notes for your reviewer: 需要测试: 1. 文章正常新建和发布的逻辑。 2. 文章设置未来时间的发布逻辑。 3. 取消定时发布和已发布文章的逻辑。 #### Does this PR introduce a user-facing change? ```release-note 优化 Console 文章管理中的文章发布逻辑。 ``` |
||
---|---|---|
.. | ||
__tests__ | ||
entity-fields | ||
PostListItem.vue | ||
PostSettingModal.vue | ||
SnapshotContent.vue | ||
SnapshotListItem.vue |