第一次添加item沒報錯,之后添加就報錯了,貌似是id的問題,我想問,這個id沒聲明過,為啥可以使用?
vue.runtime.esm.js?2b0e:619 [Vue warn]: Duplicate keys detected: 'NaN'. This may cause an update error.
found in
---> <ToDo> at src/todo/todo.vue
? ? ? ?<App> at src/app.vue
? ? ? ? ?<Root>
vue.runtime.esm.js?2b0e:619 [Vue warn]: Duplicate keys detected: 'NaN'. This may cause an update error.
found in
---> <ToDo> at src/todo/todo.vue
? ? ? ?<App> at src/app.vue
? ? ? ? ?<Root>
2019-09-26
舉報
2019-10-08
key值重復,不影響正常運行,如果有強迫癥改一下key值