Duplicate keys detected: '1'. This may cause an update error

问题原因::key值重复,在其后加一个字符串,要求:key必须以数字开头
v-for="(vo, idx) in navDisList" :key="idx+ '-label'"

你可能感兴趣的:(Duplicate keys detected: '1'. This may cause an update error)