feat: init

This commit is contained in:
2023-10-01 13:25:41 +08:00
parent e8729a499a
commit e01a2f5348
4 changed files with 10 additions and 19 deletions

View File

@@ -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',
},
});

View File

@@ -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: '关于' },
]