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

请问vue异步路由懒加载如何解决 #62

Closed
fastCreator opened this issue Mar 20, 2017 · 3 comments
Closed

请问vue异步路由懒加载如何解决 #62

fastCreator opened this issue Mar 20, 2017 · 3 comments

Comments

@fastCreator
Copy link

我遇到更复杂的需求,求解答
大型平台,不同用户有不同权限,看到不同界面
router是通过ajax过来的数据生成的,当我写懒加载的时候webpack无法识别(懒加载使用的是一个变量参数传递)

@keviswang
Copy link

router还可以通过ajax生成呀, 这个可以么?

@bailicangdu
Copy link
Owner

router是静态配置的,没有办法动态修改

@keviswang
Copy link

2.2 以后的 router. addRoutes应该可以了

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

3 participants