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

我的main.js里先import router再import store,此时在store里import router里的constantRoutes 时候,总显示undefined,改成在main.js里先import store再import router才成功,请问这是为什么呢?我的理解是,main.js先import router,正好被store文件import啊 #2035

Closed
huaiyue opened this issue May 9, 2019 · 2 comments

Comments

@huaiyue
Copy link

huaiyue commented May 9, 2019

Question(提问)

@huaiyue
Copy link
Author

huaiyue commented May 9, 2019

我的main.js里先import router再import store,此时在stor/modules/permissionse里import router里的constantRoutes 时候,总显示undefined,改成在main.js里先import store再import router才成功,请问这是为什么呢?我的理解是,main.js先import router,正好被store文件import啊

@PanJiaChen
Copy link
Owner

这是是webpack的问题。

#1537

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

No branches or pull requests

2 participants