diff --git a/CHANGELOG.md b/CHANGELOG.md index c055bbc..ecab97a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ ### Testing -- test: |E2E| 覆盖新邮件默认未读、地址隔离、标记已读及非法状态操作校验 +- fix: |E2E| 覆盖新邮件默认未读、地址隔离、标记已读及非法状态操作校验 - test: |E2E| 覆盖 D1 数据库大小响应、配置键隔离,以及数据库页面套餐选择的持久化与刷新恢复 - fix: |E2E| 覆盖发信页面草稿编辑、正文格式切换及 HTML 预览 - fix: |E2E| 覆盖用户 JWT 发信接口的地址归属、额度扣减、实际投递和发件箱操作,以及用户中心查看地址凭证、切换发件地址和按地址过滤发件箱的完整流程 diff --git a/CHANGELOG_EN.md b/CHANGELOG_EN.md index d87b524..5fcd551 100644 --- a/CHANGELOG_EN.md +++ b/CHANGELOG_EN.md @@ -26,7 +26,7 @@ ### Testing -- test: |E2E| Cover unread state on new mail, mailbox isolation, marking mail read, and invalid status-operation validation +- fix: |E2E| Cover unread state on new mail, mailbox isolation, marking mail read, and invalid status-operation validation - test: |E2E| Cover the D1 database-size response, config-key isolation, and persistence of the database-page plan selection across reloads - fix: |E2E| Cover draft editing, content-format switching, and HTML preview in the send-mail composer - fix: |E2E| Cover address ownership, balance decrement, delivery, and sent-item operations through the User JWT API, plus user-center credential display, sender switching, and sent-item filtering by address diff --git a/frontend/src/components/MailBox.vue b/frontend/src/components/MailBox.vue index 7370b8e..dcb2fe7 100644 --- a/frontend/src/components/MailBox.vue +++ b/frontend/src/components/MailBox.vue @@ -157,7 +157,7 @@ const openMail = async (mail) => { const markCurrentPageRead = async () => { if (!await markMailsRead(rawData.value)) return message.success(t("success")) - if (mailStateFilter.value === getReadStateValue(true)) await refresh() + if (mailStateFilter.value === getReadStateValue(true)) await backFirstPageAndRefresh() } const canGoPrevMail = computed(() => { diff --git a/vitepress-docs/docs/en/guide/feature/mail-api.md b/vitepress-docs/docs/en/guide/feature/mail-api.md index 532750b..94fd9c7 100644 --- a/vitepress-docs/docs/en/guide/feature/mail-api.md +++ b/vitepress-docs/docs/en/guide/feature/mail-api.md @@ -10,7 +10,7 @@ offset = 0 res = requests.get( f"https:///api/mails?limit={limit}&offset={offset}", headers={ - "Authorization": f"Bearer {your-JWT-password}", + "Authorization": "Bearer ", # "x-custom-auth": "", # If private site password is enabled "Content-Type": "application/json" } @@ -30,7 +30,7 @@ Use `PATCH /api/mails/state` to move the state of up to 100 mail IDs: ```python requests.patch( "https:///api/mails/state", - headers={"Authorization": f"Bearer {your-JWT-password}"}, + headers={"Authorization": "Bearer "}, json={"ids": [1, 2], "state": "read"} ) ``` diff --git a/vitepress-docs/docs/zh/guide/feature/mail-api.md b/vitepress-docs/docs/zh/guide/feature/mail-api.md index 3afd3d1..3794aca 100644 --- a/vitepress-docs/docs/zh/guide/feature/mail-api.md +++ b/vitepress-docs/docs/zh/guide/feature/mail-api.md @@ -10,7 +10,7 @@ offset = 0 res = requests.get( f"https://<你的worker地址>/api/mails?limit={limit}&offset={offset}", headers={ - "Authorization": f"Bearer {你的JWT密码}", + "Authorization": "Bearer <你的JWT密码>", # "x-custom-auth": "<你的网站密码>", # 如果启用了私有站点密码 "Content-Type": "application/json" } @@ -30,7 +30,7 @@ res = requests.get( ```python requests.patch( "https://<你的worker地址>/api/mails/state", - headers={"Authorization": f"Bearer {你的JWT密码}"}, + headers={"Authorization": "Bearer <你的JWT密码>"}, json={"ids": [1, 2], "state": "read"} ) ```