fix: toggle tools

This commit is contained in:
YunYouJun
2022-04-14 23:59:26 +08:00
parent ca86612bdc
commit 3b477cfff5

View File

@@ -105,7 +105,7 @@ const toggleStuff = (item: StuffItem) => {
<ToolTag <ToolTag
v-for="item, i in tools" :key="i" v-for="item, i in tools" :key="i"
:active="curTool === item.name" :active="curTool === item.name"
@click="curTool = item.name" @click="curTool === item.name ? curTool = '' : curTool = item.name"
> >
<span v-if="item.emoji" class="inline-flex">{{ item.emoji }}</span> <span v-if="item.emoji" class="inline-flex">{{ item.emoji }}</span>
<span v-else-if="item.icon" class="inline-flex"> <span v-else-if="item.icon" class="inline-flex">