a-tree重复key造成的: TypeError: Cannot read property 'key of undefined at Hi at

问题背景

使用a-tree构造组织树过程中
后端返回的数据officeCode存在重复的情况
造成Vue的DOM树对应的key重复

解决办法

保证a-tree的tree-data数据中的各个node的key唯一

posted @ 2024-01-26 16:13  Felix_Openmind  阅读(47)  评论(0)    收藏  举报
*{cursor: url(https://files-cdn.cnblogs.com/files/morango/fish-cursor.ico),auto;}