fix: 修复前端设置初始化时未返回 domains 数组导致的 undefined 错误 (#997)

This commit is contained in:
bhwa233
2026-04-23 11:57:31 +08:00
committed by GitHub
parent 063b6be2b1
commit 1e50bb0933
3 changed files with 7 additions and 2 deletions
+2
View File
@@ -16,6 +16,8 @@
### Bug Fixes
- fix: |Frontend| Fix the frontend settings bootstrap throwing an `undefined` error when `/open_api/settings` does not return a `domains` array by normalizing the field to an empty array before mapping it
### Improvements
- refactor: |Worker| Split `mails_api/index.ts` and `admin_api/index.ts` so the index files only wire routes. Business logic moved into dedicated `*_api.ts` files (`mails_crud.ts` / `new_address.ts` / `parsed_mail_api.ts` / `address_api.ts` / `address_sender_api.ts` / `sendbox_api.ts` / `statistics_api.ts` / `account_settings_api.ts`). Paths and behavior unchanged