fix: add default tool

This commit is contained in:
YunYouJun
2022-04-15 23:37:11 +08:00
parent c90a51409d
commit 805d30ad75

View File

@@ -2,7 +2,7 @@ import { acceptHMRUpdate, defineStore } from 'pinia'
export const useRecipeStore = defineStore('recipe', () => { export const useRecipeStore = defineStore('recipe', () => {
const curStuff = ref(new Set<string>()) const curStuff = ref(new Set<string>())
const curTools = ref(new Set<string>()) const curTools = ref(new Set<string>(['一口大锅']))
const selectedStuff = computed(() => Array.from(curStuff.value)) const selectedStuff = computed(() => Array.from(curStuff.value))
const selectedTools = computed(() => Array.from(curTools.value)) const selectedTools = computed(() => Array.from(curTools.value))