user.ts 584 B

1234567891011121314151617181920212223
  1. import type { RouteRecordRaw } from 'vue-router'
  2. import { UsergroupAddOutlined, UserOutlined } from '@ant-design/icons-vue'
  3. export const userRoutes: RouteRecordRaw[] = [
  4. {
  5. path: 'users',
  6. name: 'Manage Users',
  7. component: () => import('@/views/user/User.vue'),
  8. meta: {
  9. name: () => $gettext('Manage Users'),
  10. icon: UsergroupAddOutlined,
  11. },
  12. },
  13. {
  14. path: 'profile',
  15. name: 'User Profile',
  16. component: () => import('@/views/user/UserProfile.vue'),
  17. meta: {
  18. name: () => $gettext('User Profile'),
  19. icon: UserOutlined,
  20. },
  21. },
  22. ]