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

手摸手教程中route.js代码变量 route 与现有代码不一致,导致路由失败~ #2261

Closed
sunwenming opened this issue Jun 18, 2019 · 1 comment

Comments

@sunwenming
Copy link

Bug report(问题描述)

手摸手教程中route.js变量route 与现有代码不一致。
现有代码逻辑已经改为routes
望大佬有时间改下,小白已踩坑。
https://juejin.im/post/591aa14f570c35006961acac#heading-7

//异步挂载的路由
//动态需要根据权限加载的路由表 
export const asyncRouterMap = [
  {
    path: '/permission',
    component: Layout,
    name: '权限测试',
    meta: { role: ['admin','super_editor'] }, //页面需要的权限

建议:可以把教程放在github上可以pull request

@PanJiaChen
Copy link
Owner

感谢你的建议,不过这是两年多前的文章了,不想改了。这里只是给出一个思路。
自己踩坑才更加印象深刻。

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