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

@@ -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'