feat: show emoji by 杂烩

This commit is contained in:
YunYouJun
2022-04-17 03:30:08 +08:00
parent bbd9f840b5
commit 6892eecfec
2 changed files with 50 additions and 36 deletions

View File

@@ -26,7 +26,9 @@ const triggerGtm = (val: string) => {
bg="blue-300 opacity-20"
@click="triggerGtm(dish.name)"
>
<span m="r-1" class="inline-flex justify-center items-center" text="sm blue-700 dark:blue-200">{{ dish.emojis.join(' ') + ' ' + dish.name }}</span>
<span m="r-1" class="inline-flex justify-center items-center" text="sm blue-700 dark:blue-200">
{{ (dish.tags?.includes('杂烩') ? '🍲' : dish.emojis.join(' ')) + ' ' + dish.name }}
</span>
<span v-for="tool, i in tools" :key="i" inline-flex>
<div v-if="dish.tools?.includes(tool.name)" :class="tool.icon" />
</span>