feat: init
This commit is contained in:
@@ -26,6 +26,13 @@ export default defineConfig({
|
||||
|
||||
// 主题
|
||||
theme: {
|
||||
'@primary-color': 'red',
|
||||
// '@primary-color': 'red',
|
||||
},
|
||||
// https://v3.umijs.org/zh-CN/plugins/plugin-layout
|
||||
layout: {
|
||||
name: 'Umi.js',
|
||||
locale: true,
|
||||
layout: 'side',
|
||||
logo: '/user.jpg',
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default [
|
||||
{ path: '/', component: '@/pages/index' },
|
||||
{ path: '/about', component: '@/pages/about' },
|
||||
{ path: '/', component: '@/pages/index', name: '首页' },
|
||||
{ path: '/about', component: '@/pages/about', name: '关于' },
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user