From b18b7a03ff89337e4907f23980834492de452b7c Mon Sep 17 00:00:00 2001 From: xiaowang Date: Tue, 24 Feb 2026 16:08:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=90=8E=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=A1=B5=E4=BF=AE=E6=94=B9=20=E5=90=8E?= =?UTF-8?q?=E7=AB=AF=E8=AF=B7=E6=B1=82ip=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend/src/views/AuthView.vue | 2 +- Frontend/vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Frontend/src/views/AuthView.vue b/Frontend/src/views/AuthView.vue index b2ef9241..fc089703 100644 --- a/Frontend/src/views/AuthView.vue +++ b/Frontend/src/views/AuthView.vue @@ -232,7 +232,7 @@ const handleSubmit = async () => { sessionStorage.setItem('accessToken', loginData.accessToken) message.success('登录成功') - router.push('/products') + router.push('/') } else { await authApi.register({ account: formData.account, diff --git a/Frontend/vite.config.ts b/Frontend/vite.config.ts index 5b8070b6..6cfc0d8a 100644 --- a/Frontend/vite.config.ts +++ b/Frontend/vite.config.ts @@ -42,7 +42,7 @@ export default defineConfig({ host: true, proxy: { '/api': { - target: 'http://localhost:8088', // 代理到 Gateway + target: 'http://wcy111.top:8088', // 代理到 Gateway changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, ''), },