YunYouJun / cook

🍲 好的,今天我们来做菜!OK, Let's Cook!

Home Page:https://cook.yunyoujun.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

菜谱选材的初期交互表现与预期不符

KazariEX opened this issue · comments

Describe the bug

在未携带本地数据进入首页时,在模糊匹配和生存模式下初次、首先选择任意食材,均不显示任何菜谱;而在严格匹配下执行相同操作,则错误地显示了所有菜谱。

Reproduction

鼠标不懂事自己点的

System Info

System:
  OS: Windows 10 10.0.19045
  CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11400F @ 2.60GHz
  Memory: 6.04 GB / 15.87 GB
Binaries:
  Node: 20.9.0 - D:\Program Files\nodejs\node.EXE
  npm: 10.2.2 - D:\Program Files\nodejs\npm.CMD
  pnpm: 8.10.2 - D:\Program Files\nodejs\node_global\pnpm.CMD
Browsers:
  Edge: Spartan (44.19041.3570.0), Chromium (119.0.2151.44)
  Internet Explorer: 11.0.19041.3570

Used Package Manager

pnpm

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

升级了依赖后,watch 的表现似乎有问题,已经通过更深层的 watch 修复了。

watch(() => [keyword.value, selectedStuff.value, curTool.value, curMode.value], async () => {