mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
fix: 修复 API Key 管理界面按钮的点击事件逻辑
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user