vdi/web-fe/.umirc.ts

70 lines
1.3 KiB
TypeScript

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,
},
// 路由配置
routes: [
{
path: '/login',
component: '@/pages/login',
},
{
path: '/vncClient',
component: '@/pages/vncClient',
},
{
path: '/',
component: '@/pages/components/Layout/index',
routes: [
{
path: '/images',
component: '@/pages/imagePage',
},
{
path: '/profile',
component: '@/pages/profile',
},
{
path: '/userList',
component: '@/pages/userList',
},
{
path: '/terminal',
component: '@/pages/terminal',
},
{
path: '/network',
component: '@/pages/network',
},
{
path: '/storage',
component: '@/pages/storage',
},
],
},
],
npmClient: 'pnpm',
proxy: {
'/api/nex/v1/': {
target: 'http://192.168.2.224:8113',
// changeOrigin: true,
},
'/api/files': {
target: 'http://10.100.51.86:8113',
},
},
});