From 67169fc0c6c57b8b0338ea0c0a33cea9a53183a5 Mon Sep 17 00:00:00 2001 From: abearxiong Date: Wed, 31 Dec 2025 17:55:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20@kevisual/api=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E8=87=B3=200.0.14=EF=BC=8C=E5=B9=B6=E5=9C=A8=20QueryP?= =?UTF-8?q?roxy=20=E7=B1=BB=E4=B8=AD=E6=B7=BB=E5=8A=A0=20getViewQuery=20?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=BB=A5=E8=8E=B7=E5=8F=96=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- query/query-proxy/index.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0d3d8c0..030509b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kevisual/api", - "version": "0.0.13", + "version": "0.0.14", "description": "", "main": "mod.ts", "scripts": { diff --git a/query/query-proxy/index.ts b/query/query-proxy/index.ts index 9075c45..134eabe 100644 --- a/query/query-proxy/index.ts +++ b/query/query-proxy/index.ts @@ -326,6 +326,13 @@ export class QueryProxy { } return routes; } + async getViewQuery(viewId: string) { + const view = this.views.find(v => v.id === viewId); + if (view) { + return view.query; + } + return undefined; + } /** * 运行路由 * @param msg