更新版本至 0.0.47,升级 @kevisual/remote-app 依赖至 0.0.4,并在 QueryApp 类中扩展 getApp 方法的参数以支持创建新应用

This commit is contained in:
2026-02-05 18:34:54 +08:00
parent 4e36d01fb1
commit e4990d5e3d
4 changed files with 22 additions and 9 deletions

View File

@@ -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',