代码优化
This commit is contained in:
32
api/login/login.js
Normal file
32
api/login/login.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import http from '@/http/http.js'
|
||||
|
||||
/**
|
||||
* 登录
|
||||
*/
|
||||
export const login = (data) => {
|
||||
return http.request({
|
||||
url: '/Login/registerCode',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送验证码
|
||||
*/
|
||||
export const setSendMsg = (mobile,type) => {
|
||||
return http.request({
|
||||
url: '/Login/sendMsg/' + mobile + '/'+type
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册
|
||||
*/
|
||||
export const registerCode = (params) => {
|
||||
return http.request({
|
||||
url: '/Login/registerCode',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user