123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import { defineConfig } from '@umijs/max';
- export default defineConfig({
- antd: {},
- access: {},
- model: {},
- initialState: {},
- request: {},
- layout: {
- title: '商户后台',
- },
- routes: [
- {
- path: '/',
- redirect: '/home',
- },
- {
- name: '登录',
- path: '/login',
- component: './Login',
- layout: false,
- },
- {
- name: '首页',
- path: '/home',
- component: './Home',
- icon: 'HomeOutlined',
- },
- {
- name: '订单管理',
- path: '/order',
- icon: 'OrderedListOutlined',
- routes: [
- {
- path: 'all',
- name: '全部订单',
- component: './Order',
- access: 'canUseMainAccount',
- },
- {
- path: 'mine',
- name: '我的订单',
- component: './Order/Mine',
- },
- {
- path: 'detail/:id',
- name: '详情',
- component: './Order/Detail',
- hideInMenu: true,
- },
- ],
- },
- {
- name: '产品列表',
- path: '/product',
- component: './ProductList',
- icon: 'AppstoreOutlined',
- },
- {
- name: '子账号管理',
- path: '/child_account',
- component: './ChildAccount',
- icon: 'TeamOutlined',
- access: 'canUseMainAccount',
- },
- {
- name: '重置密码',
- path: '/reset_pwd',
- component: './ResetPassword',
- icon: 'ReloadOutlined',
- },
- ],
- npmClient: 'pnpm',
- });
|