更新 @kevisual/api 版本至 0.0.23,添加 metadata.url 属性以增强路由注册信息
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@kevisual/api",
|
"name": "@kevisual/api",
|
||||||
"version": "0.0.22",
|
"version": "0.0.23",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "mod.ts",
|
"main": "mod.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export const initApi = async (opts: {
|
|||||||
_isBrowser && console.debug(`注册路由: [${r.path}] ${r?.key}`, 'API');
|
_isBrowser && console.debug(`注册路由: [${r.path}] ${r?.key}`, 'API');
|
||||||
let metadata = r.metadata || {};
|
let metadata = r.metadata || {};
|
||||||
metadata.viewItem = item;
|
metadata.viewItem = item;
|
||||||
|
metadata.url = query.url;
|
||||||
router.route({
|
router.route({
|
||||||
path: r.path,
|
path: r.path,
|
||||||
key: r.key || '',
|
key: r.key || '',
|
||||||
|
|||||||
Reference in New Issue
Block a user