pull/213/head
xiaojunnuo 2024-10-10 02:27:54 +08:00
parent f0b2a61246
commit 1d48dcc004
4 changed files with 18 additions and 5 deletions

View File

@ -12,7 +12,9 @@
</td>
<td class="status center flex-center">
<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>
</tr>
</tbody>
@ -74,11 +76,17 @@ watch(
}
);
const loading = ref(false);
async function doVerify() {
if (!cnameRecord.value || !cnameRecord.value.id) {
return;
}
await api.DoVerify(cnameRecord.value.id);
loading.value = true;
try {
await api.DoVerify(cnameRecord.value.id);
} finally {
loading.value = false;
}
await doRefresh();
}
</script>

View File

@ -5,6 +5,7 @@
<td style="width: 160px">主机记录</td>
<td style="width: 250px">请设置CNAME记录设置以后不要删除</td>
<td style="width: 120px" class="center">状态</td>
<td style="width: 80px" class="center">验证</td>
</tr>
</thead>
<template v-for="key in domains" :key="key">

View File

@ -3,8 +3,9 @@
<div class="fullscreen-modal" @click="fullscreenExit"></div>
<div class="plan-wrapper">
<div class="plan-box">
<div class="fullscreen-button pointer">
<fs-icon :icon="fullscreen ? 'material-symbols:fullscreen' : 'material-symbols:fullscreen-exit'" @click="fullscreen = !fullscreen"></fs-icon>
<div class="fullscreen-button pointer" @click="fullscreen = !fullscreen">
<span style="font-size: 10px"> 这里可以放大 </span>
<fs-icon :icon="fullscreen ? 'material-symbols:fullscreen' : 'material-symbols:fullscreen-exit'"></fs-icon>
</div>
<table class="plan-table">
<thead>
@ -149,6 +150,9 @@ function onDomainsChanged(domains: string[]) {
continue;
}
const mainDomain = parsed.domain;
if (mainDomain == null) {
continue;
}
let group = domainGroups[mainDomain];
if (!group) {
group = {};

View File

@ -402,7 +402,7 @@ export default {
.step-form {
display: flex;
flex-wrap: wrap;
width: 1300px;
width: 1500px;
.fs-form-item {
width: 100%;
}