This commit is contained in:
GYYM
2024-11-07 20:55:11 +08:00
parent 9804baf8a3
commit b28bcaaab7
2 changed files with 5 additions and 5 deletions

View File

@@ -19,6 +19,6 @@ VITE_API_URL=/api
# 开发环境跨域代理,支持配置多个 # 开发环境跨域代理,支持配置多个
VITE_PROXY=[["/api","http://192.168.1.124: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.125:18093/"]]
# VITE_PROXY=[["/api","http://192.168.1.138:8080/"]]张文 # VITE_PROXY=[["/api","http://192.168.1.138:8080/"]]张文

View File

@@ -8,17 +8,17 @@ import type { Dict } from '../interface'
// 用户登录 // 用户登录
export const loginApi = (params: Login.ReqLoginForm) => { export const loginApi = (params: Login.ReqLoginForm) => {
return http.post<Login.ResLogin>(`${rePrefix}/login`, params, { loading: false }) return http.post<Login.ResLogin>(`${rePrefix}/login`, params, { loading: false })
//return http.post<Login.ResLogin>(`/Register1`, params, { loading: false }) // return http.post<Login.ResLogin>(`/Register1`, params, { loading: false })
} }
// 获取菜单列表 // 获取菜单列表
export const getAuthMenuListApi = () => { export const getAuthMenuListApi = () => {
return http.get<Menu.MenuOptions[]>(`${rePrefix}/menu/list`, {}, { loading: false }) return http.get<Menu.MenuOptions[]>(`${rePrefix}/menu/list`, {}, { loading: false })
//return http.post<Menu.MenuOptions[]>(`/Register2`, {}, { loading: false }) // return http.post<Menu.MenuOptions[]>(`/Register2`, {}, { loading: false })
} }
// 获取按钮权限 // 获取按钮权限
export const getAuthButtonListApi = () => { export const getAuthButtonListApi = () => {
return http.get<Login.ResAuthButtons>(`${rePrefix}/auth/buttons`, {}, { loading: false }) return http.get<Login.ResAuthButtons>(`${rePrefix}/auth/buttons`, {}, { loading: false })
//return http.post<Login.ResAuthButtons>(`/Register3`, {}, { loading: false }) // return http.post<Login.ResAuthButtons>(`/Register3`, {}, { loading: false })
} }
// 用户退出登录 // 用户退出登录
export const logoutApi = () => { export const logoutApi = () => {