react
文章平均质量分 50
dzqloveyou
一界码农
展开
-
React+Ant Design+Tree渲染树形菜单(机构树)
React+Ant Design+Tree渲染树形菜单(机构树)最近做了两次机构树,觉得这个这个还是很重要的,记录一下以后方便看1.引用组件:import { Tree } from 'antd';const TreeNode = Tree.TreeNode;2.数据(data)this.state={ compoentList:[ { "super_bank_id_list": "0", "children": [原创 2020-12-17 11:43:12 · 3953 阅读 · 1 评论 -
React报错:Can‘t perform a React state update on an unmounted component. This is a no-op, but it indica
React报错:Can’t perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.今天在开发的时候功能没有问题,但是控制台报这个错误原创 2020-12-03 10:41:46 · 3194 阅读 · 9 评论