vdi/web-fe/.umirc.ts

70 lines
1.3 KiB
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',
},
2025-08-29 09:51:17 +00:00
{
path: '/vncClient',
component: '@/pages/vncClient',
},
2025-08-05 01:57:49 +00:00
{
path: '/',
component: '@/pages/components/Layout/index',
routes: [
{
path: '/images',
2025-08-29 09:51:17 +00:00
component: '@/pages/imagePage',
2025-08-05 01:57:49 +00:00
},
{
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-29 09:51:17 +00:00
{
path: '/network',
component: '@/pages/network',
},
{
path: '/storage',
component: '@/pages/storage',
},
2025-08-05 01:57:49 +00:00
],
},
],
npmClient: 'pnpm',
2025-08-08 10:09:16 +00:00
proxy: {
'/api/nex/v1/': {
2025-08-29 09:51:17 +00:00
target: 'http://192.168.2.224:8113',
2025-08-08 10:09:16 +00:00
// changeOrigin: true,
},
'/api/files': {
2025-08-29 09:51:17 +00:00
target: 'http://10.100.51.86:8113',
},
2025-08-08 10:09:16 +00:00
},
2025-08-05 01:57:49 +00:00
});