halo/ui/uc-src/modules/contents/posts
Ryan Wang 54e088741e
refactor: logic of publishing post (#5987)
#### 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 文章管理中的文章发布逻辑。
```
2024-05-27 08:26:58 +00:00
..
components refactor: logic of publishing post (#5987) 2024-05-27 08:26:58 +00:00
composables feat: add retry mechanism for saving posts on the UC end (#5578) 2024-03-25 04:38:08 +00:00
types Move folder console to ui 2024-02-02 22:22:51 +08:00
PostEditor.vue refactor: ignore case when matching editor raw types (#5602) 2024-03-27 05:00:07 +00:00
PostList.vue refactor: logic of publishing post (#5987) 2024-05-27 08:26:58 +00:00
module.ts Move folder console to ui 2024-02-02 22:22:51 +08:00