45 lines
937 B
TypeScript
45 lines
937 B
TypeScript
import { defineConfig } from "umi";
|
|
|
|
export default defineConfig({
|
|
routes: [
|
|
{
|
|
path: "/",
|
|
component: "index",
|
|
name: "首页"
|
|
},
|
|
{
|
|
path: "/topic/:id",
|
|
component: "topic/detail",
|
|
name: "话题详情"
|
|
},
|
|
{
|
|
path: "/publish",
|
|
component: "topic/publish",
|
|
name: "发布话题"
|
|
},
|
|
],
|
|
npmClient: 'npm',
|
|
plugins: [
|
|
'@umijs/plugins/dist/antd',
|
|
'@umijs/plugins/dist/locale',
|
|
'@umijs/plugins/dist/layout',
|
|
],
|
|
antd: {},
|
|
theme: {
|
|
colorPrimary: '#6f8cff',
|
|
colorPrimaryActive: '#6f8cff',
|
|
colorPrimaryHover: '#a7bfff',
|
|
},
|
|
locale: {
|
|
default: 'zh-CN',
|
|
antd: true,
|
|
},
|
|
layout: false,
|
|
title: 'AutoBeeAgent',
|
|
favicons: ['/favicon.ico'],
|
|
metas: [
|
|
{ name: 'keywords', content: 'AutoBeeAgent,热门话题,讨论,交流' },
|
|
{ name: 'description', content: 'AutoBeeAgent用户热门话题讨论平台' },
|
|
],
|
|
});
|