feat: add tool icon for dish

This commit is contained in:
YunYouJun
2022-04-16 09:35:16 +08:00
parent bff0d9eada
commit 579aa1489f
4 changed files with 11 additions and 8 deletions

View File

@@ -8,11 +8,7 @@ import { meat, staple, tools, vegetable } from '~/data/food'
import recipeData from '~/data/recipe.json'
import type { Recipe } from '~/types'
import { useRecipeStore } from '~/stores/recipe'
import { generateEmojisFromStuff } from '~/utils'
(recipeData as Recipe).forEach((recipe) => {
recipe.emojis = generateEmojisFromStuff(recipe.stuff)
})
const recipe = ref<Recipe>(recipeData as Recipe)
const rStore = useRecipeStore()