代码优化

This commit is contained in:
GaoHao
2025-01-07 09:54:54 +08:00
parent 4ccddee396
commit 5b19340974
10 changed files with 882 additions and 885 deletions

32
api/login/login.js Normal file
View 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
})
}