Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance(use-menu-tree): deep clone with lodash #200

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

wehuss
Copy link
Contributor

@wehuss wehuss commented Nov 8, 2022

Types of changes

  • New feature
  • Bug fix
  • Documentation change
  • Coding style change
  • Refactoring
  • Performance improvement
  • Test cases
  • Continuous integration
  • Typescript definition change
  • Breaking change

Background and context

use-menu-tree.ts中使用JSON方法进行深拷贝导致route对象中的函数属性丢失
image

Solution

使用lodash中的cloneDeep方法拷贝route对象

How is the change tested?

Changelog

Changelog(CN) Changelog(EN) Related issues
用lodash的cloneDepp克隆route对象 cloning route objects with cloneDepp of lodash

Checklist:

  • Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
  • Changes are submitted to the appropriate branch (e.g. features should be submitted to feature branch and others should be submitted to master branch)

Other information

@sHow8e sHow8e merged commit 02f1f2f into arco-design:main Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants