UNPKG

@reactseed/template-antd-vite

Version:

React seed ant design template for vite and creating react app

45 lines (41 loc) 784 B
import { Route } from '@/typings/router'; /* * Note: * Menu items with children need to set a key starting with "/" * @see https://github.com/umijs/route-utils/blob/master/src/transformRoute/transformRoute.ts#L219 */ const menus: Route[] = [ { path: '/', name: 'Home', icon: 'home', }, { name: 'Other', key: '/other', icon: 'other', children: [ { path: '/app-info', name: 'App Info (api mock)', }, { path: '/hello', name: 'Hello (zustand)', }, { path: '/user', name: 'User (axios)', }, { path: '/simple', name: 'Simple', }, { path: '/simple2', name: 'Not found', }, ], }, ]; export default menus;