halo/ui/uc-src/modules/contents/posts
Ryan Wang 2cf0d6853a
feat: add slug existence check when creating posts (#7617)
#### What type of PR is this?

/area ui
/kind improvement
/milestone 2.21.x

#### What this PR does / why we need it:

This PR adds frontend support for checking whether an slug already exists when creating posts.

Note:

1. The current implementation isn’t perfect, some actions (like clicking the “Publish” button) don’t check for duplicate slug yet.
2. Slug checking in the user center might not be accurate, since it may not have permission to query all posts.

<img width="695" alt="image" src="https://github.com/user-attachments/assets/baa37a82-49c2-43be-a4d8-0e0f22a9d73b" />

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/7615
Fixes https://github.com/halo-dev/halo/issues/3332

#### Special notes for your reviewer:

#### Does this PR introduce a user-facing change?

```release-note
创建文章时支持检查别名是否重复
```
2025-07-27 05:19:17 +00:00
..
components feat: add slug existence check when creating posts (#7617) 2025-07-27 05:19:17 +00:00
composables feat: add retry mechanism for publishing posts on the UC end (#7171) 2025-01-03 09:46:10 +00:00
types Move folder console to ui 2024-02-02 22:22:51 +08:00
PostEditor.vue feat: add slug existence check when creating posts (#7617) 2025-07-27 05:19:17 +00:00
PostList.vue refactor: adapt page header styles for responsive design (#7544) 2025-06-13 06:06:42 +00:00
module.ts chore: organize and fix imports (#6152) 2024-06-26 10:42:50 +00:00