vdi/web-fe/.umirc.ts

54 lines
1009 B
TypeScript
Raw Normal View History

2025-08-05 01:57:49 +00:00
import { defineConfig } from '@umijs/max';
export default defineConfig({
antd: {},
access: {},
model: {},
initialState: {},
request: {},
layout: false,
outputPath: 'serve/dist',
locale: {
default: 'zh-CN',
antd: true, // 启用 antd 国际化
baseNavigator: true,
},
2025-08-05 01:57:49 +00:00
// 路由配置
routes: [
{
path: '/login',
component: '@/pages/login',
},
{
path: '/',
component: '@/pages/components/Layout/index',
routes: [
{
path: '/images',
component: '@/pages/images',
},
{
path: '/profile',
component: '@/pages/profile',
},
2025-08-05 08:54:53 +00:00
{
path: '/userList',
component: '@/pages/userList',
},
{
path: '/terminal',
component: '@/pages/terminal',
},
2025-08-05 01:57:49 +00:00
],
},
],
npmClient: 'pnpm',
2025-08-08 10:09:16 +00:00
proxy: {
'/api/nex/v1/': {
target: 'http://10.100.51.85:8112',
// changeOrigin: true,
},
},
2025-08-05 01:57:49 +00:00
});