From a071f760d3bf763907a39dacd40c0c74f2171ef8 Mon Sep 17 00:00:00 2001 From: kk <875203880@qq.com> Date: Mon, 20 Jul 2026 10:30:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=88=E6=9D=83=E5=9B=9E=E8=B0=83code?= =?UTF-8?q?=E6=94=AF=E6=8C=81auth=5Fcode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 98a2f99..b657e11 100644 --- a/src/App.vue +++ b/src/App.vue @@ -42,8 +42,8 @@ } } - // 3. 检查 URL 中是否有授权回调的 code - const code = urlParams.get('code'); + // 3. 检查 URL 中是否有授权回调的 code(支付宝用 auth_code,微信用 code) + const code = urlParams.get('code') || urlParams.get('auth_code'); if (code) { // 有 code → 进入授权 Loading 页处理