1、vue2的代码放到vue3的代码里构建报错
Vue: <template v-for> key should be placed on the <template> tag
2. 错误原因
Vue2中key不能放在template中,必须放在子标签(组件)上
Vue3中key必须放在template中,不然会触发Eslint检测
1、vue2的代码放到vue3的代码里构建报错
Vue: <template v-for> key should be placed on the <template> tag
2. 错误原因
Vue2中key不能放在template中,必须放在子标签(组件)上
Vue3中key必须放在template中,不然会触发Eslint检测