Skip to content

fix: use fromPairs replace Object.fromEntries #5605

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

Merged
merged 2 commits into from
May 20, 2022

Conversation

wen81643956
Copy link
Contributor

This is a bugfix

What's the background?

  1. fix: #5168

API Realization (Optional if not new feature)

  1. use lodash fromPairs replace Object.fromEntries

What's the effect? (Optional if not new feature)

  1. we can run it in a development environment with earlier versions of browsers

Changelog description (Optional if not new feature)

  1. fix: use fromPairs replace Object.fromEntries

@wen81643956
Copy link
Contributor Author

this pr is refer to element-plus pr

@@ -1,5 +1,6 @@
import type { UnwrapRef } from 'vue';
import { reactive, toRef } from 'vue';
import fromPairs from 'lodash/fromPairs';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use lodash-es/fromPairs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replaced

@tangjinzhou tangjinzhou merged commit fdf76b9 into vueComponent:main May 20, 2022
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uncaught (in promise) TypeError: Object.fromEntries is not a function
2 participants