更新 @kevisual/api 版本至 0.0.23,添加 metadata.url 属性以增强路由注册信息

This commit is contained in:
2026-01-21 20:40:58 +08:00
parent ba44339b48
commit 7de76f29e9
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@kevisual/api",
"version": "0.0.22",
"version": "0.0.23",
"description": "",
"main": "mod.ts",
"scripts": {

View File

@@ -35,6 +35,7 @@ export const initApi = async (opts: {
_isBrowser && console.debug(`注册路由: [${r.path}] ${r?.key}`, 'API');
let metadata = r.metadata || {};
metadata.viewItem = item;
metadata.url = query.url;
router.route({
path: r.path,
key: r.key || '',