perf: 优化dokploy 部署插件,配置选择serverId

This commit is contained in:
xiaojunnuo
2025-11-19 23:47:26 +08:00
parent be4f479afd
commit c9709f2698
3 changed files with 47 additions and 23 deletions
@@ -50,6 +50,14 @@ export class DokployAccess extends BaseAccess {
return "ok"
}
async getServerList(){
const req = {
url :"/api/server.all",
method: "get",
}
return await this.doRequest(req);
}
async getCertList(){
const req = {
url :"/api/certificates.all",
@@ -96,7 +104,7 @@ export class DokployAccess extends BaseAccess {
headers,
baseURL: this.endpoint,
...req,
logRes: true,
logRes: false,
});
}