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

Global functions will override local functions #3073

Closed
kooriookami opened this issue Jan 21, 2021 · 2 comments · Fixed by #3074
Closed

Global functions will override local functions #3073

kooriookami opened this issue Jan 21, 2021 · 2 comments · Fixed by #3074
Labels
❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. 🐞 bug Something isn't working

Comments

@kooriookami
Copy link

Version

3.0.5

Reproduction link

https://codesandbox.io/s/admiring-hermann-v6iop

Steps to reproduce

The global function is in main.js, the same name local function is in HelloWorld.vue. The HelloWorld.vue is async imported, used to simulate routes.

What is expected?

Local functions should be executed

What is actually happening?

Global functions are executed

@Kingbultsea
Copy link
Contributor

image

@Kingbultsea
Copy link
Contributor

wait

@HcySunYang HcySunYang added 🐞 bug Something isn't working ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. labels Jan 21, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. 🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants