diff --git a/frontend/src/views/accounts/components/AccountConcurrencyModal.vue b/frontend/src/views/accounts/components/AccountConcurrencyModal.vue index 576a5e510..a9fa37198 100644 --- a/frontend/src/views/accounts/components/AccountConcurrencyModal.vue +++ b/frontend/src/views/accounts/components/AccountConcurrencyModal.vue @@ -2,17 +2,19 @@ import type { Account } from '@/api' import { ZDialog, ZIconButton, ZPagination } from '@codex-proxy/ui' import { Grid2X2, RefreshCw } from '@lucide/vue' -import { toRef } from 'vue' +import { computed, toRef } from 'vue' import { useAccountConcurrency } from '../composables/useAccountConcurrency' +import { accountIdentityLabel } from '../utils/accountIdentity' import AccountConcurrencyTable from './AccountConcurrencyTable.vue' const props = defineProps<{ account: Account | null }>() const open = defineModel({ required: true }) +const accountLabel = computed(() => props.account ? accountIdentityLabel(props.account) : '当前账号') const { pageSize, data, entries, loading, tableLoading, error, refresh, setPage, setPageSize } = useAccountConcurrency(toRef(props, 'account'), open)