From 6c52888af291b9e3d5e209acc8eeea1b5c40cb7b Mon Sep 17 00:00:00 2001 From: BeaCox Date: Sat, 6 Jun 2026 12:14:47 +0800 Subject: [PATCH] fix(route/sjtu/cs/tzgg): add category description table for docs (#22197) --- lib/routes/sjtu/cs/tzgg.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/routes/sjtu/cs/tzgg.tsx b/lib/routes/sjtu/cs/tzgg.tsx index 27274d087..4a543e329 100644 --- a/lib/routes/sjtu/cs/tzgg.tsx +++ b/lib/routes/sjtu/cs/tzgg.tsx @@ -93,12 +93,7 @@ export const route: Route = { path: '/cs/tzgg/:category', categories: ['university'], example: '/sjtu/cs/tzgg/bkspy', - parameters: { - category: { - description: '通知类别', - options: Object.fromEntries(Object.entries(categoryMap).map(([k, v]) => [k, v.name])), - }, - }, + parameters: { category: '通知类别' }, features: { requireConfig: false, requirePuppeteer: false, @@ -115,6 +110,9 @@ export const route: Route = { maintainers: ['BeaCox'], handler, url: 'www.cs.sjtu.edu.cn/notice-xssw-bkspy.html', + description: `| 本科生培养 | 研究生培养 | 国际交流 | 党建德育 | 团学工作 | 职业发展 | 其他 | +| ---------- | ---------- | -------- | -------- | -------- | -------- | ---- | +| bkspy | yjspy | gjjl | djdy | txgz | zyfz | qt |`, }; async function handler(ctx): Promise {