Files
YoYo 42aefaab17
Some checks failed
Test / unit-test (push) Successful in 7s
Test / build-check (push) Successful in 3s
Test / e2e-test (push) Failing after 1m19s
PR Preview / test (pull_request) Has been skipped
PR Preview / teardown-preview (pull_request) Successful in 14s
PR Preview / deploy-preview (pull_request) Has been skipped
fix: 保存配方卡片所有英文翻译(含精油名称)
之前保存翻译时只保存了配方名的 en_name,精油的自定义英文名
(customOilNameEn)没有持久化,刷新后丢失。

- backend: recipes 表新增 en_oils(JSON 字符串)列
- RecipeUpdate 模型增加 en_oils 字段,update_recipe 写入 DB
- 所有 SELECT 语句补上 en_oils,_recipe_to_dict 返回该字段
- frontend: applyTranslation() 同时提交 en_oils
- onMounted 优先从 r.en_oils 还原精油译名,再 fallback 静态表
- recipes store 映射 en_oils 字段

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 19:57:52 +00:00
..