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