vue里面v-for显示红色波浪线

vue里面使用v-for代码显示红色的波浪线,解决办法:

before:

<div v-for="tmsgs in msg.message"></div>
 
after:
<div v-for="(tmsgs,index) in msg.message" :key="index">
 
就解决啦,但是不建议使用index!
原文地址:https://www.cnblogs.com/renxiao1218/p/11290753.html