EditableProTable 新增一行時,報錯“EditableProTable 新增一行時,報錯 Uncaught (in promise) Error: 請設定 recordCreatorProps.record 並返回一個唯一的key”

信铁寒胜發表於2024-05-28

1、EditableProTable 新增一行時,報錯

Uncaught (in promise) Error: 請設定 recordCreatorProps.record 並返回一個唯一的key
    at Object.eval [as current] (index.js:679:1)
    at Object.eval [as addEditRecord] (index.js:11:1)
    at _callee$ (index.js:50:1)
    at tryCatch (regeneratorRuntime.js:45:1)
    at Generator.eval (regeneratorRuntime.js:133:1)
    at Generator.eval [as next] (regeneratorRuntime.js:74:1)
    at asyncGeneratorStep (asyncToGenerator.js:3:1)
    at _next (asyncToGenerator.js:22:1)

  解決辦法:加上recordCreatorProps引數,建立唯一ID

相關文章