diff --git a/dashboard/src/views/ProviderPage.vue b/dashboard/src/views/ProviderPage.vue index 32f5a60a8..a5716f7bf 100644 --- a/dashboard/src/views/ProviderPage.vue +++ b/dashboard/src/views/ProviderPage.vue @@ -69,6 +69,25 @@ :loading="isProviderTesting(provider.id)" @toggle-enabled="providerStatusChange" :bglogo="getProviderIcon(provider.provider)" @delete="deleteProvider" @edit="configExistingProvider" @copy="copyProvider" :show-copy-button="true"> + - - - - mdi-heart-pulse - {{ tm('availability.title') }} - - - mdi-refresh - {{ tm('availability.refresh') }} - - - {{ showStatus ? tm('logs.collapse') : tm('logs.expand') }} - {{ showStatus ? 'mdi-chevron-up' : 'mdi-chevron-down' }} - - - - - - - - {{ tm('availability.noData') }} - - - - - - - - mdi-check-circle - mdi-alert-circle - - - {{ status.id }} - - - {{ getStatusText(status.status) }} - - - - {{ tm('availability.errorMessage') }}: {{ status.error }} - - - - - - - - - - @@ -751,11 +735,14 @@ export default { return this.testingProviders.includes(providerId); }, + getProviderStatus(providerId) { + return this.providerStatuses.find(s => s.id === providerId); + }, + async testSingleProvider(provider) { if (this.isProviderTesting(provider.id)) return; this.testingProviders.push(provider.id); - this.showStatus = true; // 自动展开状态部分 // 更新UI为pending状态 const statusIndex = this.providerStatuses.findIndex(s => s.id === provider.id);