mirror of https://github.com/certd/certd
chore:
parent
f0b2a61246
commit
1d48dcc004
|
@ -12,7 +12,9 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="status center flex-center">
|
<td class="status center flex-center">
|
||||||
<fs-values-format v-model="cnameRecord.status" :dict="statusDict" />
|
<fs-values-format v-model="cnameRecord.status" :dict="statusDict" />
|
||||||
<fs-icon icon="ion:refresh-outline" class="pointer" @click="doVerify"></fs-icon>
|
</td>
|
||||||
|
<td class="center">
|
||||||
|
<a-button v-if="cnameRecord.status !== 'valid'" type="primary" size="small" :loading="loading" @click="doVerify">点击验证</a-button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -74,11 +76,17 @@ watch(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const loading = ref(false);
|
||||||
async function doVerify() {
|
async function doVerify() {
|
||||||
if (!cnameRecord.value || !cnameRecord.value.id) {
|
if (!cnameRecord.value || !cnameRecord.value.id) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
loading.value = true;
|
||||||
|
try {
|
||||||
await api.DoVerify(cnameRecord.value.id);
|
await api.DoVerify(cnameRecord.value.id);
|
||||||
|
} finally {
|
||||||
|
loading.value = false;
|
||||||
|
}
|
||||||
await doRefresh();
|
await doRefresh();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<td style="width: 160px">主机记录</td>
|
<td style="width: 160px">主机记录</td>
|
||||||
<td style="width: 250px">请设置CNAME记录(设置以后不要删除)</td>
|
<td style="width: 250px">请设置CNAME记录(设置以后不要删除)</td>
|
||||||
<td style="width: 120px" class="center">状态</td>
|
<td style="width: 120px" class="center">状态</td>
|
||||||
|
<td style="width: 80px" class="center">验证</td>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<template v-for="key in domains" :key="key">
|
<template v-for="key in domains" :key="key">
|
||||||
|
|
|
@ -3,8 +3,9 @@
|
||||||
<div class="fullscreen-modal" @click="fullscreenExit"></div>
|
<div class="fullscreen-modal" @click="fullscreenExit"></div>
|
||||||
<div class="plan-wrapper">
|
<div class="plan-wrapper">
|
||||||
<div class="plan-box">
|
<div class="plan-box">
|
||||||
<div class="fullscreen-button pointer">
|
<div class="fullscreen-button pointer" @click="fullscreen = !fullscreen">
|
||||||
<fs-icon :icon="fullscreen ? 'material-symbols:fullscreen' : 'material-symbols:fullscreen-exit'" @click="fullscreen = !fullscreen"></fs-icon>
|
<span style="font-size: 10px"> 这里可以放大→ </span>
|
||||||
|
<fs-icon :icon="fullscreen ? 'material-symbols:fullscreen' : 'material-symbols:fullscreen-exit'"></fs-icon>
|
||||||
</div>
|
</div>
|
||||||
<table class="plan-table">
|
<table class="plan-table">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -149,6 +150,9 @@ function onDomainsChanged(domains: string[]) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const mainDomain = parsed.domain;
|
const mainDomain = parsed.domain;
|
||||||
|
if (mainDomain == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let group = domainGroups[mainDomain];
|
let group = domainGroups[mainDomain];
|
||||||
if (!group) {
|
if (!group) {
|
||||||
group = {};
|
group = {};
|
||||||
|
|
|
@ -402,7 +402,7 @@ export default {
|
||||||
.step-form {
|
.step-form {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
width: 1300px;
|
width: 1500px;
|
||||||
.fs-form-item {
|
.fs-form-item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue