更新 package.json 和多个路由,添加描述和元数据,增强功能和可读性

This commit is contained in:
2025-12-29 03:36:25 +08:00
parent 64ba53f73c
commit 9067be1293
6 changed files with 71 additions and 7 deletions

View File

@@ -38,7 +38,10 @@ app.route({
path: 'window',
key: 'manager',
description: desc,
middleware: ['auth']
middleware: ['auth'],
metadata: {
tags: ['浏览器操作', '窗口管理'],
}
}).define(async (ctx) => {
const bounds = ctx.query as Bounds || {};
const { left, top, width, height, windowState } = bounds;