perf: 输入证书域名时,支持点击导入域名

This commit is contained in:
xiaojunnuo
2026-01-25 22:57:59 +08:00
parent bca0eefc83
commit 40be42406c
8 changed files with 118 additions and 37 deletions
@@ -261,7 +261,10 @@ export class DomainService extends BaseService<DomainEntity> {
const itemHandle = async (domainRecord: any) => {
task.incrementCurrent()
const domain = domainRecord.domain
let domain = domainRecord.domain
if (domain.endsWith(".")) {
domain = domain.slice(0, -1)
}
const old = await this.findOne({
where: {
@@ -410,7 +413,7 @@ export class DomainService extends BaseService<DomainEntity> {
await this.deleteDomainImportTask({userId,key})
}
await this.addDomainImportTask({userId,dnsProviderType,dnsProviderAccessId,index})
return await this.addDomainImportTask({userId,dnsProviderType,dnsProviderAccessId,index})
}