mirror of
				https://github.com/YunaiV/ruoyi-vue-pro.git
				synced 2025-10-31 18:49:06 +08:00 
			
		
		
		
	feat: add vue3(element-plus)
This commit is contained in:
		
							
								
								
									
										154
									
								
								yudao-ui-admin-vue3/src/router/modules/remaining.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										154
									
								
								yudao-ui-admin-vue3/src/router/modules/remaining.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,154 @@ | ||||
| import { Layout } from '@/utils/routerHelper' | ||||
| import { useI18n } from '@/hooks/web/useI18n' | ||||
| const { t } = useI18n() | ||||
|  | ||||
| const remainingRouter: AppRouteRecordRaw[] = [ | ||||
|   { | ||||
|     path: '/redirect', | ||||
|     component: Layout, | ||||
|     name: 'Redirect', | ||||
|     children: [ | ||||
|       { | ||||
|         path: '/redirect/:path(.*)', | ||||
|         name: 'Redirect', | ||||
|         component: () => import('@/views/Redirect/Redirect.vue'), | ||||
|         meta: {} | ||||
|       } | ||||
|     ], | ||||
|     meta: { | ||||
|       hidden: true, | ||||
|       noTagsView: true | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     path: '/', | ||||
|     component: Layout, | ||||
|     redirect: '/index', | ||||
|     name: 'Home', | ||||
|     meta: {}, | ||||
|     children: [ | ||||
|       { | ||||
|         path: 'index', | ||||
|         component: () => import('@/views/Home/Index.vue'), | ||||
|         name: 'Index', | ||||
|         meta: { | ||||
|           title: t('router.home'), | ||||
|           icon: 'ep:home-filled', | ||||
|           noCache: true, | ||||
|           affix: true | ||||
|         } | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     path: '/user', | ||||
|     component: Layout, | ||||
|     name: 'User', | ||||
|     meta: { | ||||
|       hidden: true | ||||
|     }, | ||||
|     children: [ | ||||
|       { | ||||
|         path: 'profile', | ||||
|         component: () => import('@/views/Profile/Index.vue'), | ||||
|         name: 'Profile', | ||||
|         meta: { | ||||
|           hidden: true, | ||||
|           icon: 'ep:user', | ||||
|           canTo: true, | ||||
|           title: t('common.profile') | ||||
|         } | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     path: '/codegen', | ||||
|     component: Layout, | ||||
|     name: 'Codegen', | ||||
|     meta: { | ||||
|       hidden: true | ||||
|     }, | ||||
|     children: [ | ||||
|       { | ||||
|         path: 'edit', | ||||
|         component: () => import('@/views/infra/codegen/EditTable.vue'), | ||||
|         name: 'EditTable', | ||||
|         meta: { | ||||
|           noTagsView: true, | ||||
|           noCache: true, | ||||
|           hidden: true, | ||||
|           canTo: true, | ||||
|           icon: 'ep:edit', | ||||
|           title: '修改生成配置', | ||||
|           activeMenu: 'infra/codegen/index' | ||||
|         } | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     path: '/job', | ||||
|     component: Layout, | ||||
|     name: 'Job', | ||||
|     meta: { | ||||
|       hidden: true | ||||
|     }, | ||||
|     children: [ | ||||
|       { | ||||
|         path: 'job-log', | ||||
|         component: () => import('@/views/infra/job/JobLog.vue'), | ||||
|         name: 'JobLog', | ||||
|         meta: { | ||||
|           noTagsView: true, | ||||
|           noCache: true, | ||||
|           hidden: true, | ||||
|           canTo: true, | ||||
|           icon: 'ep:edit', | ||||
|           title: '调度日志', | ||||
|           activeMenu: 'infra/job/index' | ||||
|         } | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     path: '/login', | ||||
|     component: () => import('@/views/Login/Login.vue'), | ||||
|     name: 'Login', | ||||
|     meta: { | ||||
|       hidden: true, | ||||
|       title: t('router.login'), | ||||
|       noTagsView: true | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     path: '/403', | ||||
|     component: () => import('@/views/Error/403.vue'), | ||||
|     name: 'NoAccess', | ||||
|     meta: { | ||||
|       hidden: true, | ||||
|       title: '403', | ||||
|       noTagsView: true | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     path: '/404', | ||||
|     component: () => import('@/views/Error/404.vue'), | ||||
|     name: 'NoFound', | ||||
|     meta: { | ||||
|       hidden: true, | ||||
|       title: '404', | ||||
|       noTagsView: true | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     path: '/500', | ||||
|     component: () => import('@/views/Error/500.vue'), | ||||
|     name: 'Error', | ||||
|     meta: { | ||||
|       hidden: true, | ||||
|       title: '500', | ||||
|       noTagsView: true | ||||
|     } | ||||
|   } | ||||
| ] | ||||
|  | ||||
| export default remainingRouter | ||||
		Reference in New Issue
	
	Block a user
	 xingyu
					xingyu