修复添加域名解析记录时编号错乱的问题
This commit is contained in:
parent
52818a5162
commit
29ca4bab25
@ -94,7 +94,7 @@
|
||||
状态
|
||||
</th>
|
||||
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
||||
⚙️
|
||||
操作
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -111,7 +111,7 @@
|
||||
/>
|
||||
</td>
|
||||
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-900">
|
||||
{{ record.isNew ? '-' : index + 1 }}
|
||||
{{ record.isNew ? '-' : (dnsRecords.filter(r => !r.isNew).findIndex(r => r.id === record.id) + 1) }}
|
||||
</td>
|
||||
<td class="px-4 py-4 whitespace-nowrap">
|
||||
<!-- 主机名编辑 -->
|
||||
@ -234,7 +234,7 @@
|
||||
size="sm"
|
||||
class="text-blue-600 hover:text-blue-700"
|
||||
>
|
||||
✏️
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
v-if="record.editing"
|
||||
@ -344,6 +344,7 @@ import AlertCircleIcon from '~icons/lucide/alert-circle';
|
||||
import EditIcon from '~icons/lucide/edit';
|
||||
import Trash2Icon from '~icons/lucide/trash-2';
|
||||
import GlobeIcon from '~icons/lucide/globe';
|
||||
import SettingsIcon from '~icons/lucide/settings';
|
||||
|
||||
export default {
|
||||
name: 'JsiteDomainDNSRecords',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user