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

如下页面跳转后无法正常渲染 #2042

Closed
zarte opened this issue May 9, 2019 · 4 comments
Closed

如下页面跳转后无法正常渲染 #2042

zarte opened this issue May 9, 2019 · 4 comments

Comments

@zarte
Copy link

zarte commented May 9, 2019

{
//一级菜单
    path: '/tasks',
    component: Layout,
    redirect: 'noredirect',
    alwaysShow: true,
    meta: {
      title: 'tasks',
      icon: 'tasks2'
    },
    children: [{
//二级菜单
      path: 'taskslist',
      component: () => import('@/views/tasks/taskslist'),
      name: 'taskslist',
      meta: { title: 'taskslist', icon: 'list', noCache: true },
      children: [{
//三级不显示
        path: '/tasks/taskslist/taskdetail/:id(\\d+)',
        component: () => import('@/views/tasks/taskslist/taskdetail'),
        name: 'taskdetail',
        meta: { title: 'taskdetail', noCache: true },
        hidden: true
      }]
    }

侧边栏修改过二级能正常显示为可跳转的菜单了,问题是访问3级的那个菜单地址页面加载的是二级菜单的页面,地址栏正常是三级的地址.

@zarte
Copy link
Author

zarte commented May 9, 2019

找到了是嵌套路由的原因。
我要实现上面这样的路径嵌套ui又不嵌套的要怎么弄呀?

@PanJiaChen
Copy link
Owner

@zarte
Copy link
Author

zarte commented May 13, 2019

@PanJiaChen 那要实现访问三级页面的时候不显示二级页面的内容怎么弄?直接加那样二级的内容三级也会显示。主要是面包屑导航又是根据嵌套自动生成的

@PanJiaChen
Copy link
Owner

PanJiaChen commented May 13, 2019

二级页面加不想在三级页面显示的内容加一个v-if。

EdwinBetanc0urt added a commit to EdwinBetanc0urt/adempiere-vue that referenced this issue Apr 1, 2024
* Feat: Support Cache MS (Menu) (PanJiaChen#1988)

* Feat: Support Cache MS (Menu)

* Update menu.js

---------

Co-authored-by: Edwin Betancourt <[email protected]>

* Feat: Support Cache MS (Menus, Windows,  Process and Reports) (PanJiaChen#1992)

* Feat: Support Cache MS (Menu)

* Feat: Support Cache MS (Process)

* Feat: Support Cache MS (Process)

* minimal changes

* Feat: Support Windows Open Search

* Update TabPanel.vue

* Minimal changes

* Minimal changes

* minimal changes

* Update actions.js

* Update window.ts

* Update index.vue

* Update defaultValueManager.js

* Update lookups.js

* Update defaultValueManager.js

---------

Co-authored-by: Elsio Sanchez <[email protected]>
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