fix: 西兰花 to 花菜

This commit is contained in:
YunYouJun
2022-04-15 23:46:55 +08:00
parent 805d30ad75
commit 88c4cf6b22
2 changed files with 8 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ const displayedRecipe = computed(() => {
const stuffFlag = curStuff.value.every(stuff => item.stuff.includes(stuff))
// const toolFlag = curTools.value.every(tool => item.tools?.includes(tool))
const toolFlag = curTools.value.some(tool => item.tools?.includes(tool))
return stuffFlag && toolFlag
return curTools.value.length ? stuffFlag && toolFlag : stuffFlag
}
else {
const stuffFlag = curStuff.value.some(stuff => item.stuff.includes(stuff))