feat: init
This commit is contained in:
parent
b051c59e9e
commit
b15f09c27c
@ -1,13 +1,10 @@
|
||||
import { defineConfig } from 'umi';
|
||||
|
||||
import routes from './routes'
|
||||
export default defineConfig({
|
||||
nodeModulesTransform: {
|
||||
type: 'none', // all 慢 兼容好
|
||||
},
|
||||
routes: [
|
||||
{ path: '/', component: '@/pages/index' },
|
||||
{ path: '/about', component: '@/pages/about' },
|
||||
],
|
||||
routes,
|
||||
fastRefresh: {},
|
||||
history: {
|
||||
type: 'browser'
|
||||
|
4
config/routes.ts
Normal file
4
config/routes.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export default [
|
||||
{ path: '/', component: '@/pages/index' },
|
||||
{ path: '/about', component: '@/pages/about' },
|
||||
]
|
Loading…
Reference in New Issue
Block a user