feat: add help page & update desc

This commit is contained in:
YunYouJun
2022-04-27 02:20:33 +08:00
parent dbcf5bd969
commit 175346c43b
16 changed files with 518 additions and 191 deletions

View File

@@ -2,6 +2,11 @@ import { acceptHMRUpdate, defineStore } from 'pinia'
const namespace = 'cook'
/**
* survival: 生存模式
*/
type CookMode = 'survival' | ''
export const useRecipeStore = defineStore('recipe', () => {
const strict = useStorage(`${namespace}:strict`, false)
@@ -13,6 +18,8 @@ export const useRecipeStore = defineStore('recipe', () => {
// const selectedTools = computed(() => Array.from(curTools.value))
// const selectedTools = ref('')
const mode = ref<CookMode>('')
function toggleStuff(name: string) {
if (!curStuff)
return