mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 19:09:15 +00:00
fix: 修复 API Key 管理界面按钮的点击事件逻辑
This commit is contained in:
@@ -3016,8 +3016,8 @@
|
|||||||
<div class="mb-2 flex items-center justify-between">
|
<div class="mb-2 flex items-center justify-between">
|
||||||
<h5 class="font-semibold text-purple-900 dark:text-purple-200">更新 API Key</h5>
|
<h5 class="font-semibold text-purple-900 dark:text-purple-200">更新 API Key</h5>
|
||||||
<button
|
<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"
|
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"
|
@click="showApiKeyManagement = true"
|
||||||
>
|
>
|
||||||
<i class="fas fa-list-ul" />
|
<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-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'
|
: '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)"
|
:disabled="resetting === getOriginalIndex(index)"
|
||||||
title="重置状态"
|
title="重置状态"
|
||||||
|
@click="resetApiKeyStatus(apiKey, getOriginalIndex(index))"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-if="resetting === getOriginalIndex(index)"
|
v-if="resetting === getOriginalIndex(index)"
|
||||||
@@ -132,6 +132,7 @@
|
|||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<i
|
<i
|
||||||
|
class="mr-1"
|
||||||
:class="[
|
:class="[
|
||||||
apiKey.status === 'active'
|
apiKey.status === 'active'
|
||||||
? 'fas fa-check-circle'
|
? 'fas fa-check-circle'
|
||||||
@@ -139,7 +140,6 @@
|
|||||||
? 'fas fa-exclamation-triangle'
|
? 'fas fa-exclamation-triangle'
|
||||||
: 'fas fa-exclamation-circle'
|
: 'fas fa-exclamation-circle'
|
||||||
]"
|
]"
|
||||||
class="mr-1"
|
|
||||||
/>
|
/>
|
||||||
{{
|
{{
|
||||||
apiKey.status === 'active'
|
apiKey.status === 'active'
|
||||||
|
|||||||
Reference in New Issue
Block a user