更新版本至 0.0.47,升级 @kevisual/remote-app 依赖至 0.0.4,并在 QueryApp 类中扩展 getApp 方法的参数以支持创建新应用
This commit is contained in:
@@ -22,7 +22,15 @@ export class QueryApp extends BaseQuery {
|
||||
data: data,
|
||||
}, opts);
|
||||
}
|
||||
getApp(data: any, opts?: DataOpts) {
|
||||
getApp(data: {
|
||||
key?: string;
|
||||
version?: string;
|
||||
/**
|
||||
* 当app不存在,会创建一个新的,
|
||||
* 之后上传文件就好了,会执行检测任务
|
||||
*/
|
||||
create?: boolean;
|
||||
}, opts?: DataOpts) {
|
||||
return this.query.post({
|
||||
path: 'app',
|
||||
key: 'get',
|
||||
@@ -39,6 +47,8 @@ export class QueryApp extends BaseQuery {
|
||||
id?: string;
|
||||
username?: string,
|
||||
detect?: boolean,
|
||||
appKey?: string;
|
||||
version?: string;
|
||||
}, opts?: DataOpts) {
|
||||
return this.query.post({
|
||||
path: 'app',
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
import { RemoteApp } from '@Kevisual/remote-app'
|
||||
import { RemoteApp } from '@kevisual/remote-app'
|
||||
|
||||
export {
|
||||
RemoteApp
|
||||
}
|
||||
Reference in New Issue
Block a user