fix: 修复配置文档中的表格格式;添加路由配置示例

This commit is contained in:
2026-01-22 01:53:51 +08:00
parent 18a6fd4cfe
commit ddfdb63598
4 changed files with 98 additions and 51 deletions

View File

@@ -127,8 +127,8 @@ export class AssistantApp extends Manager {
}
async initRouterApp() {
const config = this.config.getConfig();
const routerProxy = config.router.proxy || [];
const base = config.router.base ?? false;
const routerProxy = config?.router?.proxy || [];
const base = config.router?.base ?? false;
if (base) {
routerProxy.push({
type: 'router',