mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-04 21:17:55 +08:00
update duplicate key warning message
This commit is contained in:
parent
f8cfc81826
commit
fd6a31febf
@ -221,9 +221,10 @@ export function createPatchFunction (backend) {
|
||||
newStartVnode = newCh[++newStartIdx]
|
||||
} else {
|
||||
elmToMove = oldCh[idxInOld]
|
||||
/* istanbul ignore if */
|
||||
if (process.env.NODE_ENV !== 'production' && !elmToMove) {
|
||||
warn(
|
||||
'Duplicate track-by key: ' + idxInOld + '. ' +
|
||||
'It seems there are duplicate track-by keys that is causing an update error. ' +
|
||||
'Make sure each v-for item has a unique track-by key.'
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user