From 683ddc3fcec8b6dc25912087a18f5e8a51acdce6 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 21 Mar 2025 20:31:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81=E8=8E=B7=E5=8F=96=E9=80=BB=E8=BE=91=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=AE=9A=E6=97=B6=E5=99=A8=E8=AE=BE=E7=BD=AE=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E5=B9=B6=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dialog/AliyunAuthDialog.vue | 2 +- src/components/dialog/U115AuthDialog.vue | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/dialog/AliyunAuthDialog.vue b/src/components/dialog/AliyunAuthDialog.vue index 4b1013bd..b7d9d17f 100644 --- a/src/components/dialog/AliyunAuthDialog.vue +++ b/src/components/dialog/AliyunAuthDialog.vue @@ -48,6 +48,7 @@ async function getQrcode() { qrCodeContent.value = result.data.codeContent ck.value = result.data.ck t.value = result.data.t + timeoutTimer = setTimeout(checkQrcode, 3000) } else { text.value = result.message } @@ -98,7 +99,6 @@ async function savaAliPanConfig() { onMounted(async () => { await getQrcode() - timeoutTimer = setTimeout(checkQrcode, 3000) }) onUnmounted(() => { diff --git a/src/components/dialog/U115AuthDialog.vue b/src/components/dialog/U115AuthDialog.vue index 361bc505..2d5e9eb4 100644 --- a/src/components/dialog/U115AuthDialog.vue +++ b/src/components/dialog/U115AuthDialog.vue @@ -18,7 +18,7 @@ const emit = defineEmits(['done', 'close']) const qrCodeContent = ref('') // 下方的提示信息 -const text = ref('请使用微信或115客户端扫码,或在下方输入Cookie') +const text = ref('请使用微信或115客户端扫码') // 提醒类型 const alertType = ref<'success' | 'info' | 'error' | 'warning' | undefined>('info') @@ -29,7 +29,7 @@ let timeoutTimer: NodeJS.Timeout | undefined = undefined // 完成 async function handleDone() { clearTimeout(timeoutTimer) - if (props.conf?.cookie) { + if (props.conf?.refresh_token) { await savaU115Config() } emit('done') @@ -41,6 +41,7 @@ async function getQrcode() { const result: { [key: string]: any } = await api.get('/storage/qrcode/u115') if (result.success && result.data) { qrCodeContent.value = result.data.codeContent + timeoutTimer = setTimeout(checkQrcode, 3000) } else { text.value = result.message } @@ -95,7 +96,6 @@ async function savaU115Config() { onMounted(async () => { await getQrcode() - timeoutTimer = setTimeout(checkQrcode, 3000) }) onUnmounted(() => { @@ -118,7 +118,7 @@ onUnmounted(() => { - +