feat: init
This commit is contained in:
parent
1a1cd5d8d3
commit
e8729a499a
@ -18,6 +18,12 @@ export default defineConfig({
|
|||||||
dynamicImport: {}, // 按需加载
|
dynamicImport: {}, // 按需加载
|
||||||
mountElementId: 'root', // 指定 reactapp 渲染到元素的根元素 id
|
mountElementId: 'root', // 指定 reactapp 渲染到元素的根元素 id
|
||||||
|
|
||||||
|
proxy: {
|
||||||
|
'/api': {
|
||||||
|
target: 'https://127.0.0.1:8989'
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
// 主题
|
// 主题
|
||||||
theme: {
|
theme: {
|
||||||
'@primary-color': 'red',
|
'@primary-color': 'red',
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import styles from './index.less';
|
import styles from './index.less';
|
||||||
import { Button } from 'antd'
|
import { Button } from 'antd'
|
||||||
import { BoxDiv } from '@/components/Box'
|
import { BoxDiv } from '@/components/Box'
|
||||||
|
import { request } from 'umi'
|
||||||
export default function IndexPage() {
|
export default function IndexPage() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
Loading…
Reference in New Issue
Block a user