| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import { defineConfig } from '@umijs/max';
- export default defineConfig({
- antd: {},
- access: {},
- model: {},
- initialState: {},
- request: {},
- layout: false,
- routes: [
- {
- path: '/login',
- name: '登录',
- component: './Login',
- layout: false,
- },
- {
- path: '/login/callback',
- name: '三方登录回调',
- component: './LoginCallback',
- layout: false,
- },
- {
- path: '/',
- redirect: '/record',
- custom: [{
- label: '课堂录播', key: '/record'
- }]
- },
- {
- path: '/record',
- component: './Record',
- custom: [{
- label: '课堂录播', key: '/record'
- }]
- },
- {
- name: '课程播放',
- path: '/play',
- component: './Play',
- custom: [{
- label: '课程播放', key: '/play'
- }]
- },
- ],
- proxy: {
- '/api': {
- 'target': 'http://119.45.236.111:8866',
- 'changeOrigin': true,
- },
- },
- npmClient: 'pnpm',
- });
|