diff --git a/src/components/LoginModal/index.vue b/src/components/LoginModal/index.vue index f0dc9d2..fa487a8 100644 --- a/src/components/LoginModal/index.vue +++ b/src/components/LoginModal/index.vue @@ -61,7 +61,8 @@ class="verify-input" />
- 验证码图片 + x j 7 2 +
@@ -231,7 +232,7 @@ const handleLogin = async () => { Message.success('登录成功'); // router.push({ name: `Pricing` }); - window.open('/Dashboard', '_blank'); + window.open(`${import.meta.env.VITE_BASE_URL}Dashboard`, '_blank'); emits('close', true); // 关闭弹窗 emits('login-success', { user: 'test' }); } catch (error) { diff --git a/vite.config.ts b/vite.config.ts index a202980..a9f74b5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -38,7 +38,7 @@ export default (config: any) => { }, proxy: { // 配置跨域代理 - '/gateway/official/u-auth': { + '/gateway/official/u-auth/index/getCaptcha': { // target: 'http://223.76.236.155:20011', // 目标服务器地址 target: 'http://222.20.126.217:9700', // 目标服务器地址 changeOrigin: true, // 允许跨域