From 20688920b8be1e25de032fc9e20499ca03a470f7 Mon Sep 17 00:00:00 2001 From: xion Date: Sun, 23 Mar 2025 21:45:35 +0800 Subject: [PATCH] config add getConfigByDefault Key --- src/query-config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/query-config.ts b/src/query-config.ts index b581af6..70933ef 100644 --- a/src/query-config.ts +++ b/src/query-config.ts @@ -81,6 +81,12 @@ export class QueryConfig { key: 'detect', }); } + async getConfigByKey(key: string) { + return this.post>({ + key: 'defaultConfig', + configKey: key, + }); + } } /**