From 9a9807230d94700a6fa881f0dfe36835f5fbbc90 Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Mon, 4 Nov 2024 09:58:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.env.development | 5 ++--- frontend/src/api/user/login.ts | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/.env.development b/frontend/.env.development index 9cffe6c..d7128be 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -19,7 +19,6 @@ VITE_API_URL=/api # 开发环境跨域代理,支持配置多个 -# VITE_PROXY=[["/api","http://192.168.1.122:18092/"]] - VITE_PROXY=[["/api","http://192.168.1.125:18092/"]]洪圣文 + VITE_PROXY=[["/api","http://192.168.1.124:18092/"]] +# VITE_PROXY=[["/api","http://192.168.1.125:18092/"]]洪圣文 # VITE_PROXY=[["/api","http://192.168.1.138:8080/"]]张文 - diff --git a/frontend/src/api/user/login.ts b/frontend/src/api/user/login.ts index c65497a..10f52fb 100644 --- a/frontend/src/api/user/login.ts +++ b/frontend/src/api/user/login.ts @@ -6,18 +6,18 @@ import http from '@/api' */ // 用户登录 export const loginApi = (params: Login.ReqLoginForm) => { - return http.post(`${rePrefix}/login`, params, { loading: false }) + return http.post(`${rePrefix}/login`, params, { loading: false }) //return http.post(`/Register1`, params, { loading: false }) } // 获取菜单列表 export const getAuthMenuListApi = () => { return http.get(`${rePrefix}/menu/list`, {}, { loading: false }) - // return http.post(`/Register2`, {}, { loading: false }) + //return http.post(`/Register2`, {}, { loading: false }) } // 获取按钮权限 export const getAuthButtonListApi = () => { return http.get(`${rePrefix}/auth/buttons`, {}, { loading: false }) - // return http.post(`/Register3`, {}, { loading: false }) + //return http.post(`/Register3`, {}, { loading: false }) } // 用户退出登录 export const logoutApi = () => {