import { defineConfig } from 'umi';
export default defineConfig({
hash: true,
history: {
type: 'hash'
},
base: '/',
publicPath: './',
title: '平台模版',
favicon: './img/favicon.ico',
layout: {
name: '西瓜平台',
locale: false,
logo: './img/logo.jpeg',
},
nodeModulesTransform: {
type: 'none',
},
locale: {
default: 'zh-CN',
antd: false,
title: false,
baseNavigator: false,
baseSeparator: '-'
},
routes: [
{ path: '/', component: '@/pages/index' },
{ path: '/products2', component: '@/pages/products', icon: 'dashboard',name: '产品' },
{ path: '/products', name: '功能页', icon: 'AppstoreAddOutlined',
routes: [{ path: '/products/list', name: '功能', component: '@/pages/products'}]}
],
fastRefresh: {},
});