更新 package.json 和多个路由,添加描述和元数据,增强功能和可读性
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user