mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
perf: 输入证书域名时,支持点击导入域名
This commit is contained in:
@@ -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})
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ export abstract class CertApplyBaseConvertPlugin extends AbstractTaskPlugin {
|
||||
vModel: "value",
|
||||
mode: "tags",
|
||||
// open: false,
|
||||
placeholder: "foo.com / *.foo.com / *.sub.foo.com / *.bar.com",
|
||||
placeholder: "请输入证书域名,比如:foo.com / *.foo.com / *.sub.foo.com / *.bar.com",
|
||||
tokenSeparators: [",", " ", ",", "、", "|"],
|
||||
search: true,
|
||||
pager:true,
|
||||
|
||||
+1
-1
@@ -192,7 +192,7 @@ export class HuaweiDnsProvider extends AbstractDnsProvider {
|
||||
let list = ret.zones || []
|
||||
list = list.map((item: any) => ({
|
||||
id: item.id,
|
||||
domain: item.name,
|
||||
domain: item.name.endsWith(".") ? item.name.slice(0, -1) : item.name,
|
||||
}));
|
||||
return {
|
||||
total:ret.metadata.total_count || list.length,
|
||||
|
||||
Reference in New Issue
Block a user