更新 @kevisual/api 版本至 0.0.14,并在 QueryProxy 类中添加 getViewQuery 方法以获取视图查询
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user