<li v-for="goods in list">报错:
[vue/require-v-for-key]
Elements in iteration expect to have 'v-bind:key' directives.
改为 <li v-for="goods in list" :key="goods">即可。
如果还报错,检查下<img v-bind:src="goods.img" >冒号左右有没有空格
[vue/require-v-for-key]
Elements in iteration expect to have 'v-bind:key' directives.
改为 <li v-for="goods in list" :key="goods">即可。
如果还报错,检查下<img v-bind:src="goods.img" >冒号左右有没有空格
2020-09-22
最赞回答 / 慕容81709759
把msg.js里的内容改了,新版不支持了,改成下边的可以解决,找了一天找到的方法--------import mitt from 'mitt'const bus = {}const emitter = mitt()bus.$on = emitter.onbus.$off = emitter.offbus.$emit = emitter.emitexport default bus
2020-09-11
已采纳回答 / 慕妹7105415
你的还能显示,我的直接就报错了,提示Msg定义了没有使用,把这个加上就可以了&defscript type="text/javascript"& { import Msg from './msg.vue'export default { data(){ return { ...
2020-09-08
https://github.com/linchuangang/VueDemo.git 分享我照着敲下来的代码
2020-09-02