1
0
mirror of synced 2026-05-21 01:36:28 +08:00

feat: Implement warnings for incompatible food combinations (#82)

* feat: 添加食物相克检测功能及相关数据支持

* chore: 修改 .gitignore 设置,并删除 recipe.json 的 git 引用

* style: 格式化 incompatible-foods.ts 文件中的代码,修改缩紧为 2

* fix: 修复导入语句,确保正确使用 Vue 的 ref 和 computed

* refactor: 优化相克检测逻辑,使用 Set 提高性能

* refactor: 移除不必要的 IncompatibleRule 类型定义

* fix: 添加缺失字段检查,确保不完整数据不会被处理

* style: 使用 eslint 优化代码格式
This commit is contained in:
Reina
2025-09-26 18:36:38 +08:00
committed by GitHub
parent cb61ab90fd
commit b13924da4f
10 changed files with 218 additions and 4 deletions

3
.gitignore vendored
View File

@@ -1,5 +1,6 @@
# auto generate
data/recipe.json
app/data/recipe.json
app/data/incompatible-foods.json
.DS_Store
.vite-ssg-dist