1. 程式人生 > 實用技巧 >樹表中點選新增時,上級選單點選沒反應 ‘setCurrentKey‘ of undefined

樹表中點選新增時,上級選單點選沒反應 ‘setCurrentKey‘ of undefined

樹表中點選新增時,上級選單點選沒反應,並顯示Uncaught (in promise) TypeError: Cannot read property ‘setCurrentKey’ of undefined
報錯,原來程式碼如下
在這裡插入圖片描述
這時將node-key的dictCode改為id即可

在這裡插入圖片描述