chore: upgrade deps & fix lint
This commit is contained in:
@@ -4,7 +4,6 @@ import { isClient, useElementBounding } from '@vueuse/core'
|
||||
/**
|
||||
* trigger show invisible element
|
||||
* @param target
|
||||
* @returns
|
||||
*/
|
||||
export function useInvisibleElement(target: MaybeComputedElementRef<HTMLElement>) {
|
||||
const { top } = useElementBounding(target)
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import type { DbRecipeItem } from 'utils/db'
|
||||
import type { DbRecipeItem } from '~/utils/db'
|
||||
|
||||
/**
|
||||
* 随机几道菜
|
||||
* @param total
|
||||
* @returns
|
||||
*/
|
||||
export function useRandomRecipe(total: Ref<number>) {
|
||||
const randomRecipes = ref<(DbRecipeItem | undefined)[]>([])
|
||||
|
||||
@@ -2,9 +2,8 @@ import { acceptHMRUpdate, defineStore } from 'pinia'
|
||||
import { useStorage } from '@vueuse/core'
|
||||
import { computed, onMounted, ref, watch } from 'vue'
|
||||
import { useGtm } from '@gtm-support/vue-gtm'
|
||||
import type { RecipeItem } from 'types'
|
||||
import type { StuffItem } from '../../data/food'
|
||||
import { db } from '../../utils/db'
|
||||
import type { RecipeItem, StuffItem } from '~/types'
|
||||
|
||||
const namespace = 'cook'
|
||||
|
||||
@@ -74,7 +73,6 @@ export const useRecipeStore = defineStore('recipe', () => {
|
||||
const isSearching = ref(false)
|
||||
/**
|
||||
* 搜索菜谱
|
||||
* @returns
|
||||
*/
|
||||
async function searchRecipes() {
|
||||
isSearching.value = true
|
||||
|
||||
Reference in New Issue
Block a user