nuxt3组件降低后保持输入值

发布于 2025-02-10 10:05:15 字数 119 浏览 0 评论 0原文

我有一个应用程序,我将信息传递到要发送到数据库的组件中...发送后,我使用v-if隐藏此组件,但是当再次打开此组件时,当我们有内存泄漏时,即使我摧毁了此组件并再次渲染它!我正在使用nuxt3,并且该代码在NUXT2上完美效果

I have an application where I pass information in components to be sent to the database... after sending I use v-if to hide this component, but when opening this component again the values ​​passed in the previous inputs appear again in this new component, as we having a memory leak, even if I destroy this component and render it again! I'm using nuxt3 and this same code worked perfectly on nuxt2

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文