vbenjs / vue-vben-admin

A modern vue admin panel built with Vue3, Shadcn UI, Vite, TypeScript, and Monorepo. It's fast!
https://www.vben.pro
MIT License
25.07k stars 6.84k forks source link

Bug: Drawer组件关闭后再打开未重置Grid中Form表单的查询数据 #4785

Open ORACLE128G opened 4 hours ago

ORACLE128G commented 4 hours ago

Version

Vben Admin V5

Describe the bug?

Drawer组件关闭后再打开未重置表单的state,可能与这一笔修改有关:fix: when the form is opened repeatedly, the state is unexpectedly stroyed #4406

Reproduction

在Drawer组件中使用useVbenVxeGrid,关闭后再打开,Form中的参数不会重置,并且在查询条件中输入新的值也不会更新

System Info

System:
    OS: macOS 13.5.1
    CPU: (8) arm64 Apple M1
    Memory: 108.27 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    Yarn: 1.22.15 - /usr/local/bin/yarn
    npm: 10.9.0 - ~/.nvm/versions/node/v20.10.0/bin/npm
    pnpm: 9.12.3 - ~/.nvm/versions/node/v20.10.0/bin/pnpm
  Browsers:
    Chrome: 130.0.6723.92
    Safari: 16.6

Relevant log output

No response

Validations

ORACLE128G commented 4 hours ago

4752 跟这个问题描述一致