ruoyi-ui/src/router/index.js
@@ -1,5 +1,7 @@
import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/views/index'; // 首页组件
import OtherPage from '@/views/shouye/shouye'; // 要跳转的页面组件
Vue.use(Router)
@@ -76,7 +78,7 @@
        component: () => import('@/views/index'),
        name: 'Index',
        meta: { title: '首页', icon: 'dashboard', affix: true }
      }
      },
    ]
  },
@@ -93,7 +95,8 @@
        meta: { title: '个人中心', icon: 'user' }
      }
    ]
  }
  },
]
// 动态路由,基于用户权限动态去加载
@@ -112,6 +115,22 @@
      }
    ]
  },
  //首页通知详情
  {
    path:'/dashboard',
    component:Layout,
    hidden: true,
    permissions: ['familymodel:property:info'],
    children: [
      {
        path: 'shouye/:id(\\d+)',
        component: () => import('@/views/shouye/shouye'),
        name: 'shouye',
        meta: { title: '通知详情' }
      }
    ]
  },
  //家庭资产管理
    {
    path: '/familymodel/Property',