更新 @kevisual/api 版本至 0.0.23,添加 metadata.url 属性以增强路由注册信息
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@kevisual/api",
|
||||
"version": "0.0.22",
|
||||
"version": "0.0.23",
|
||||
"description": "",
|
||||
"main": "mod.ts",
|
||||
"scripts": {
|
||||
|
||||
@@ -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 || '',
|
||||
|
||||
Reference in New Issue
Block a user