Tcsm
2023-09-19 842712a3c827a286044bf300fffa34e34db4cea7
ruoyi-ui/src/router/index.js
@@ -1,7 +1,6 @@
import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/views/index'; // 首页组件
import OtherPage from '@/views/shouye/shouye'; // 要跳转的页面组件
import Shouye from '@/views/shouye/shouye.vue';
Vue.use(Router)
@@ -96,7 +95,26 @@
      }
    ]
  },
  // {
  //   path: '',
  //   component: Layout,
  //   hidden: true,
  //   redirect: 'noredirect',
  //   children: [
  //     {
  //       path: 'shouye',
  //       component: () => import('@/views/shouye/shouye'),
  //       name: 'shouye',
  //       meta: { title: '通知详情' }
  //     }
  //   ]
  // },
  // {
  //   path: '/views/shouye/shouye',
  //   component: Layout,
  //   hidden: true,
  //   redirect: 'noredirect',
  // }
]
// 动态路由,基于用户权限动态去加载
@@ -117,14 +135,14 @@
  },
  //首页通知详情
  {
    path:'/dashboard',
    path:'/views/shouye',
    component:Layout,
    hidden: true,
    permissions: ['familymodel:property:info'],
    children: [
      {
        path: 'shouye/:id(\\d+)',
        path: '',
        component: () => import('@/views/shouye/shouye'),
        name: 'shouye',
        meta: { title: '通知详情' }