feat: add toggle icon detail

This commit is contained in:
YunYouJun
2022-04-16 09:47:08 +08:00
parent 579aa1489f
commit f07d2ce3be
3 changed files with 23 additions and 2 deletions

View File

@@ -25,11 +25,21 @@ export const useRecipeStore = defineStore('recipe', () => {
curTools.value.add(name)
}
/**
* 重置
*/
function reset() {
curStuff.value.clear()
curTools.value.clear()
curTools.value.add('一口大锅')
}
return {
selectedTools,
selectedStuff,
toggleStuff,
toggleTools,
reset,
}
})