/** * News 插件路由配置 * 新闻资讯管理系统 * * @author SixShop Team * @version 1.0.0 */ export default { // 路由配置 - 单个路由对象 routes: { path: '/news', name: 'NewsModule', component: () => import('@/layout/index.vue'), redirect: '/news/index', // 添加默认重定向 meta: { title: '新闻管理', icon: 'Document', permission: 'news', priority: 60, // 中等优先级 version: '1.0.0', author: 'SixShop Team', description: '新闻资讯和内容管理系统' }, children: [ { path: 'index', name: 'NewsIndex', component: () => import('./views/index.vue'), meta: { title: '新闻管理', icon: 'Document', keepAlive: true // 启用页面缓存 } } ] }, // 菜单配置 - 与路由对应 menus: [ { path: '/news', title: '新闻管理', icon: 'Document', permission: 'news', children: [ { path: '/news/index', title: '新闻管理', icon: 'Document' } ] } ] }