错误提示:
[vue-language-server] Elements in iteration expect to have 'v-bind:key' directives.
Renders the element or template block multiple times based on the source data
解决方法:
VS-首选项-设置-(搜索栏搜索 vetur)
将此处 true 改为 false
保存设置,搞定.
本文介绍了一种常见的Vue.js开发中遇到的问题——在迭代元素时未指定唯一key导致的警告,并提供了解决方案:通过调整VS Code的Vetur插件设置来消除此警告。
错误提示:
[vue-language-server] Elements in iteration expect to have 'v-bind:key' directives.
Renders the element or template block multiple times based on the source data
解决方法:
VS-首选项-设置-(搜索栏搜索 vetur)
将此处 true 改为 false
保存设置,搞定.
9849
4万+
2066

被折叠的 条评论
为什么被折叠?
