This commit is contained in:
xiaojunnuo
2024-10-23 10:34:55 +08:00
parent 4ea3edd59e
commit 3681d89a61
5 changed files with 20 additions and 9 deletions
@@ -3,8 +3,10 @@ import { request } from "/src/api/service";
const apiPrefix = "/cname/record";
export type CnameRecord = {
id: number;
status: string;
id?: number;
status?: string;
hostRecord?: string;
recordValue?: string;
};
export async function GetList() {
@@ -7,6 +7,7 @@
<td class="host-record" :title="'域名:' + props.domain">
<fs-copyable v-model="cnameRecord.hostRecord"></fs-copyable>
</td>
<td style="text-align: center">CNAME</td>
<td class="record-value">
<fs-copyable v-model="cnameRecord.recordValue"></fs-copyable>
</td>
@@ -44,10 +45,12 @@ const props = defineProps<{
}>();
const emit = defineEmits<{
change: {
id: number | null;
status: string | null;
};
change: [
{
id: number | null;
status: string | null;
}
];
}>();
const cnameRecord = ref<CnameRecord | null>(null);
@@ -3,6 +3,7 @@
<thead>
<tr>
<td style="width: 160px">主机记录</td>
<td style="width: 100px; text-align: center">记录类型</td>
<td style="width: 250px">请设置CNAME记录验证成功以后不要删除</td>
<td style="width: 120px" class="center">状态</td>
<td style="width: 80px" class="center">操作</td>