修复首页地图显示问题和版本管理页面错误

This commit is contained in:
2026-05-08 18:44:04 +08:00
parent cbeca8fbf1
commit 441eeb03a7
6 changed files with 7 additions and 7 deletions
File diff suppressed because one or more lines are too long
@@ -15,7 +15,7 @@ interface BulkActionsProps<T> {
const { table, entityName: _entityName } = defineProps<BulkActionsProps<T>>()
const selectedRows = computed(() => table.getSelectedRowModel().rows)
const selectedRows = computed(() => table.getSelectedRowModel().rows || [])
const selectedCount = computed(() => selectedRows.value.length || 0)
function handleClearSelection() {
@@ -40,7 +40,7 @@ function getCommonPinningStyles(column: Column<T>): CSSProperties {
<template>
<div class="space-y-4">
<slot name="toolbar" :selected-count="table.getSelectedRowModel().rows.length" />
<slot name="toolbar" :selected-count="table.getSelectedRowModel().rows?.length || 0" />
<slot name="filters" />
<div class="border rounded-md">
<Table>
@@ -58,7 +58,7 @@ const canNextPage = computed(() => {
return props.table.getCanNextPage()
})
const selectedCount = computed(() => props.table.getSelectedRowModel().rows.length)
const selectedCount = computed(() => props.table.getSelectedRowModel().rows?.length || 0)
const jumpPage = ref<string>('')
const isEditingPage = ref(false)
+1 -1
View File
@@ -477,7 +477,7 @@ watch(() => formData.value.application_id, (newAppId) => {
<UiSelectValue :placeholder="t('admin.versions.createForm.baseVersionPlaceholder')" />
</UiSelectTrigger>
<UiSelectContent>
<UiSelectItem value="">
<UiSelectItem value="__none__">
{{ t('admin.versions.createForm.noBaseVersion') }}
</UiSelectItem>
<UiSelectItem
+2 -2
View File
@@ -260,7 +260,7 @@ watch([appFilter, strategyFilter, methodFilter, searchFilter], () => {
</UiCardHeader>
<UiCardContent>
<div class="text-2xl font-bold">
{{ filteredVersions.length }}
{{ versions.length }}
</div>
</UiCardContent>
</UiCard>
@@ -302,7 +302,7 @@ watch([appFilter, strategyFilter, methodFilter, searchFilter], () => {
</UiCardHeader>
<UiCardContent>
<div class="text-2xl font-bold">
{{ new Set(filteredVersions.map(v => v.application_id)).size }}
{{ new Set(versions.map(v => v.application_id)).size }}
</div>
</UiCardContent>
</UiCard>