创建项目目录
安装
yarn create @umijs/umi-app
执行yarn安装相关插件
修改.umirc.ts
配置 layout: {}
,并且需要安装 @ant-design/pro-layout
···
import { defineConfig } from 'umi';
export default defineConfig({
+ layout: {},
routes: [
{ path: '/', component: '@/pages/index' },
],
});
···