删除域名解析记录组件冗余的信息

This commit is contained in:
jingrow 2025-08-03 20:35:16 +08:00
parent 2f3224eb06
commit ec5dd732dd

View File

@ -86,8 +86,8 @@
<td class="px-4 py-4 whitespace-nowrap"> <td class="px-4 py-4 whitespace-nowrap">
<input type="checkbox" class="rounded border-gray-300" /> <input type="checkbox" class="rounded border-gray-300" />
</td> </td>
<td class="px-4 py-4 whitespace-nowrap text-sm font-mono text-gray-900"> <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-900">
{{ record.item || record.host || '@' }} {{ record.item }}
</td> </td>
<td class="px-4 py-4 whitespace-nowrap"> <td class="px-4 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium" <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium"
@ -106,7 +106,7 @@
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500"> <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">
默认 默认
</td> </td>
<td class="px-4 py-4 whitespace-nowrap text-sm font-mono text-gray-900 max-w-xs truncate" :title="record.value"> <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-900 max-w-xs truncate" :title="record.value">
{{ record.value }} {{ record.value }}
</td> </td>
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500"> <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">
@ -330,7 +330,7 @@ export default {
deleteRecord(record) { deleteRecord(record) {
confirmDialog({ confirmDialog({
title: '删除DNS记录', title: '删除DNS记录',
message: `确定要删除这条DNS记录吗\n类型: ${record.type}\n主机记录: ${record.item || record.host || '@'}\n记录值: ${record.value}`, message: `确定要删除这条DNS记录吗\n类型: ${record.type}\n主机记录: ${record.item}\n记录值: ${record.value}`,
primaryAction: { primaryAction: {
label: '删除', label: '删除',
variant: 'danger', variant: 'danger',