fix: 修复 API Key 管理界面按钮的点击事件逻辑

This commit is contained in:
AAEE86
2025-10-14 10:34:38 +08:00
parent 582348d615
commit 8dd07919f4
2 changed files with 3 additions and 3 deletions

View File

@@ -3016,8 +3016,8 @@
<div class="mb-2 flex items-center justify-between">
<h5 class="font-semibold text-purple-900 dark:text-purple-200">更新 API Key</h5>
<button
type="button"
class="flex items-center gap-1.5 rounded-lg bg-purple-600 px-3 py-1.5 text-xs font-medium text-white transition-colors hover:bg-purple-700 dark:bg-purple-500 dark:hover:bg-purple-600"
type="button"
@click="showApiKeyManagement = true"
>
<i class="fas fa-list-ul" />

View File

@@ -96,9 +96,9 @@
? 'text-orange-500 hover:text-orange-700 dark:text-orange-400 dark:hover:text-orange-300'
: 'text-yellow-500 hover:text-yellow-700 dark:text-yellow-400 dark:hover:text-yellow-300'
]"
@click="resetApiKeyStatus(apiKey, getOriginalIndex(index))"
:disabled="resetting === getOriginalIndex(index)"
title="重置状态"
@click="resetApiKeyStatus(apiKey, getOriginalIndex(index))"
>
<div
v-if="resetting === getOriginalIndex(index)"
@@ -132,6 +132,7 @@
]"
>
<i
class="mr-1"
:class="[
apiKey.status === 'active'
? 'fas fa-check-circle'
@@ -139,7 +140,6 @@
? 'fas fa-exclamation-triangle'
: 'fas fa-exclamation-circle'
]"
class="mr-1"
/>
{{
apiKey.status === 'active'