Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when the v-for directive is used on <keep-alive></keep-alive>, if it is a constant , an error will be reported when switching tabs. #12914

Open
yuanruixin opened this issue Feb 19, 2025 · 1 comment · May be fixed by #12915
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. has workaround A workaround has been found to avoid the problem scope: keep-alive

Comments

@yuanruixin yuanruixin changed the title hen the v-for directive is used on <keep-alive></keep-alive>, if it is a constant , an error will be reported when switching tabs. when the v-for directive is used on <keep-alive></keep-alive>, if it is a constant , an error will be reported when switching tabs. Feb 19, 2025
@jh-leong jh-leong added the 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. label Feb 19, 2025
@edison1105 edison1105 added scope: keep-alive has workaround A workaround has been found to avoid the problem labels Feb 19, 2025
@1want
Copy link

1want commented Feb 21, 2025

  1. for...in...的迭代体必需是一个对象,v-for循环同理。你的maxLength是基本数据类型
  2. 你如果要动态添加component或者切换component应该采用别的写法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. has workaround A workaround has been found to avoid the problem scope: keep-alive
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants