mirror of
https://gitee.com/JavaLionLi/plus-ui.git
synced 2026-09-13 07:43:43 +08:00
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import { defineConfig } from '@umijs/max';
|
|
import { createUmiAppConfig } from '../vite.config';
|
|
|
|
const appConfig = createUmiAppConfig();
|
|
|
|
export default defineConfig({
|
|
title: appConfig.title,
|
|
antd: {},
|
|
access: {},
|
|
model: {},
|
|
initialState: {},
|
|
vite: appConfig.vite,
|
|
npmClient: 'pnpm',
|
|
hash: true,
|
|
esbuildMinifyIIFE: true,
|
|
history: {
|
|
type: 'browser'
|
|
},
|
|
base: appConfig.base,
|
|
publicPath: appConfig.publicPath,
|
|
routes: [
|
|
{ path: '/login', component: './login', layout: false },
|
|
{ path: '/register', component: './register', layout: false },
|
|
{ path: '/social-callback', component: './socialCallback', layout: false },
|
|
{ path: '/401', component: './error/401', layout: false },
|
|
{ path: '/404', component: './error/404', layout: false },
|
|
{ path: '/redirect/*', component: './redirect', layout: false },
|
|
{
|
|
path: '/',
|
|
component: '../layouts/BasicLayout',
|
|
routes: [
|
|
{ path: '/', redirect: '/index' },
|
|
{ path: '/index', component: './index' },
|
|
{ path: '/user/profile', component: './system/user/profile' },
|
|
{ path: '*', component: './dynamicPage' }
|
|
]
|
|
}
|
|
],
|
|
proxy: appConfig.proxy
|
|
});
|