| 12345678910111213141516171819202122232425262728293031323334 |
- import { defineConfig } from 'umi';
- export default defineConfig({
- antd: {},
- base: '/admin/',
- publicPath: '/admin/',
- history: { type: 'browser' },
- hash: true,
- routes: [
- { path: '/login', component: '@/pages/Login' },
- { path: '/change-password', component: '@/pages/ChangePassword' },
- {
- path: '/',
- component: '@/layouts/AdminLayout',
- routes: [
- { path: '/', redirect: '/dashboard' },
- { path: '/dashboard', component: '@/pages/Dashboard' },
- { path: '/chats', component: '@/pages/Chats' },
- { path: '/chats/:chatId', component: '@/pages/ChatDetail' },
- { path: '/giveaways', component: '@/pages/Giveaways' },
- { path: '/points', component: '@/pages/Points' },
- { path: '/audit', component: '@/pages/AuditLogs' },
- { path: '/settings', component: '@/pages/Settings' },
- ],
- },
- ],
- npmClient: 'npm',
- proxy: {
- '/api/admin': {
- target: 'http://127.0.0.1:8088',
- changeOrigin: true,
- },
- },
- });
|