mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	多模块重构 9:调整的请求 URL
This commit is contained in:
		| @@ -9,7 +9,7 @@ export function login(username, password, code, uuid) { | ||||
|     uuid | ||||
|   } | ||||
|   return request({ | ||||
|     url: '/login', | ||||
|     url: '/system/login', | ||||
|     method: 'post', | ||||
|     data: data | ||||
|   }) | ||||
| @@ -18,7 +18,7 @@ export function login(username, password, code, uuid) { | ||||
| // 获取用户详细信息 | ||||
| export function getInfo() { | ||||
|   return request({ | ||||
|     url: '/get-permission-info', | ||||
|     url: '/system/get-permission-info', | ||||
|     method: 'get' | ||||
|   }) | ||||
| } | ||||
| @@ -26,7 +26,7 @@ export function getInfo() { | ||||
| // 退出方法 | ||||
| export function logout() { | ||||
|   return request({ | ||||
|     url: '/logout', | ||||
|     url: '/system/logout', | ||||
|     method: 'post' | ||||
|   }) | ||||
| } | ||||
| @@ -42,7 +42,7 @@ export function getCodeImg() { | ||||
| // 社交授权的跳转 | ||||
| export function socialAuthRedirect(type, redirectUri) { | ||||
|   return request({ | ||||
|     url: '/social-auth-redirect?type=' + type + '&redirectUri=' + redirectUri, | ||||
|     url: '/system/social-auth-redirect?type=' + type + '&redirectUri=' + redirectUri, | ||||
|     method: 'get' | ||||
|   }) | ||||
| } | ||||
| @@ -50,7 +50,7 @@ export function socialAuthRedirect(type, redirectUri) { | ||||
| // 社交登录,使用 code 授权码 | ||||
| export function socialLogin(type, code, state) { | ||||
|   return request({ | ||||
|     url: '/social-login', | ||||
|     url: '/system/social-login', | ||||
|     method: 'post', | ||||
|     data: { | ||||
|       type, | ||||
| @@ -63,7 +63,7 @@ export function socialLogin(type, code, state) { | ||||
| // 社交登录,使用 code 授权码 + + 账号密码 | ||||
| export function socialLogin2(type, code, state, username, password) { | ||||
|   return request({ | ||||
|     url: '/social-login2', | ||||
|     url: '/system/social-login2', | ||||
|     method: 'post', | ||||
|     data: { | ||||
|       type, | ||||
| @@ -78,7 +78,7 @@ export function socialLogin2(type, code, state, username, password) { | ||||
| // 社交绑定,使用 code 授权码 | ||||
| export function socialBind(type, code, state) { | ||||
|   return request({ | ||||
|     url: '/social-bind', | ||||
|     url: '/system/social-bind', | ||||
|     method: 'post', | ||||
|     data: { | ||||
|       type, | ||||
| @@ -91,7 +91,7 @@ export function socialBind(type, code, state) { | ||||
| // 取消社交绑定 | ||||
| export function socialUnbind(type, unionId) { | ||||
|   return request({ | ||||
|     url: '/social-unbind', | ||||
|     url: '/system/social-unbind', | ||||
|     method: 'delete', | ||||
|     data: { | ||||
|       type, | ||||
|   | ||||
| @@ -3,7 +3,7 @@ import request from '@/utils/request' | ||||
| // 获取路由 | ||||
| export const getRouters = () => { | ||||
|   return request({ | ||||
|     url: '/list-menus', | ||||
|     url: '/system/list-menus', | ||||
|     method: 'get' | ||||
|   }) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV