From 93cd7cf979b4a695bb582fb5eb490a10f51746c8 Mon Sep 17 00:00:00 2001 From: xion Date: Sun, 23 Mar 2025 04:01:55 +0800 Subject: [PATCH] feat: add detectConfig --- src/query-config.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/query-config.ts b/src/query-config.ts index c820f7f..b581af6 100644 --- a/src/query-config.ts +++ b/src/query-config.ts @@ -70,6 +70,17 @@ export class QueryConfig { data, }); } + + /** + * 检测配置是否存在 + * @param id + * @returns + */ + async detectConfig() { + return this.post<{ updateList: Config[] }>({ + key: 'detect', + }); + } } /**