From b28bcaaab76c2f52da0ea15f18bac9b839f2ca76 Mon Sep 17 00:00:00 2001 From: GYYM <704080176@qq.com> Date: Thu, 7 Nov 2024 20:55:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.env.development | 4 ++-- frontend/src/api/user/login.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/.env.development b/frontend/.env.development index d7128be..f1b7322 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -19,6 +19,6 @@ VITE_API_URL=/api # 开发环境跨域代理,支持配置多个 - 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.124:18092/"]]洪圣文 +VITE_PROXY=[["/api","http://192.168.1.125:18093/"]] # 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 0af8b28..1f8da44 100644 --- a/frontend/src/api/user/login.ts +++ b/frontend/src/api/user/login.ts @@ -8,17 +8,17 @@ import type { Dict } from '../interface' // 用户登录 export const loginApi = (params: Login.ReqLoginForm) => { return http.post(`${rePrefix}/login`, params, { loading: false }) - //return http.post(`/Register1`, 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 = () => {