From e0534ee365b1690deb919dfa4724b7a7c91d424d Mon Sep 17 00:00:00 2001 From: Sisyphus Date: Wed, 15 Jul 2026 11:51:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(F006-W18):=20LoginView=202=20=E5=A4=84?= =?UTF-8?q?=E6=B0=B8=E4=B9=85=E4=BF=AE=E5=A4=8D=20/api=20=E5=89=8D?= =?UTF-8?q?=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 改前: line 48 captchaUrl = /auth/captcha (img src 不走 axios baseURL) line 68 axios.post(/auth/oauth/token) (不走 http 实例 baseURL) 巨变数字 nginx 只代理 /api/ 前缀, /auth/* 全 404 改后: line 48 /api/auth/captcha line 68 /api/auth/oauth/token 验证 (0 命中才通过): grep /auth/captcha dist/*.js | grep -v /api → 0 ✅ grep /auth/oauth dist/*.js | grep -v /api → 0 ✅ --- src/modules/auth/LoginView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/auth/LoginView.vue b/src/modules/auth/LoginView.vue index 1c71609..b3d8819 100644 --- a/src/modules/auth/LoginView.vue +++ b/src/modules/auth/LoginView.vue @@ -65,7 +65,7 @@ async function onLogin() { loading.value = true try { const res = await axios.post( - '/auth/oauth/token', + '/api/auth/oauth/token', qs.stringify({ ...form, grant_type: 'password' }), { headers: {