chore: fix lint
This commit is contained in:
@@ -23,7 +23,7 @@ const { playAnimation } = useEmojiAnimation(recipeBtn)
|
||||
|
||||
const gtm = useGtm()
|
||||
|
||||
const toggleStuff = (item: StuffItem, category = '', e?: Event) => {
|
||||
const toggleStuff = (item: StuffItem, category = '', _e?: Event) => {
|
||||
rStore.toggleStuff(item.name)
|
||||
|
||||
if (curStuff.value.includes(item.name))
|
||||
|
||||
@@ -24,7 +24,7 @@ export function useRecipe(recipe: Ref<Recipe>) {
|
||||
return recipe.value.filter((item) => {
|
||||
const stuffFlag = curStuff.value.every(stuff => item.stuff.includes(stuff))
|
||||
const toolFlag = item.tools?.includes(curTool.value)
|
||||
return curTool.value ? stuffFlag && toolFlag : stuffFlag
|
||||
return curTool.value ? (stuffFlag && toolFlag) : stuffFlag
|
||||
})
|
||||
}
|
||||
else if (curMode.value === 'loose') {
|
||||
@@ -51,7 +51,7 @@ export function useRecipe(recipe: Ref<Recipe>) {
|
||||
return recipe.value.filter((item) => {
|
||||
const stuffFlag = item.stuff.every(stuff => curStuff.value.includes(stuff))
|
||||
const toolFlag = item.tools?.includes(curTool.value)
|
||||
return curTool.value ? stuffFlag && toolFlag : stuffFlag
|
||||
return curTool.value ? (stuffFlag && toolFlag) : stuffFlag
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { type UserModule } from '~/types'
|
||||
|
||||
// https://github.com/antfu/vite-plugin-pwa#automatic-reload-when-new-content-available
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
export const install: UserModule = ({ isClient, router }) => {
|
||||
// if (!isClient)
|
||||
// return
|
||||
|
||||
// router.isReady().then(async () => {
|
||||
export const install: UserModule = ({ isClient, router }) => {
|
||||
if (!isClient)
|
||||
return
|
||||
|
||||
router.isReady().then(async () => {
|
||||
// const { registerSW } = await import('virtual:pwa-register')
|
||||
// registerSW({ immediate: true })
|
||||
// })
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user