From 660bd00cae0e8b75c68b2fa2836059a0446356d1 Mon Sep 17 00:00:00 2001 From: Gsh <15170702455@163.com> Date: Sun, 20 Jul 2025 22:12:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20apikey=E5=8A=A0=E8=BD=BD=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/APIKeyManagement.vue | 116 ++++++++++-------- 1 file changed, 66 insertions(+), 50 deletions(-) diff --git a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/APIKeyManagement.vue b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/APIKeyManagement.vue index 21a7df0d..90112870 100644 --- a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/APIKeyManagement.vue +++ b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/APIKeyManagement.vue @@ -8,10 +8,19 @@ import { isUserVip } from '@/utils/user'; const apiKey = ref(''); const showKey = ref(false); -const loading = ref(false); +const loading = ref(true); const displayedKey = ref(''); const showSuccessDialog = ref(false); - +const svg = ` + + `; const isOpening = ref(false); const confettis = ref([]); const router = useRouter(); @@ -147,13 +156,21 @@ function generateConfetti() { setTimeout(() => confettis.value = [], 2000); } -onMounted(() => { - fetchApiKey(); +onMounted(async () => { + await fetchApiKey(); + loading.value = false; });