Browse Source
- 新增 member.js 文件,实现账号密码登录和普通登录功能 - 修改 login.vue 中的登录逻辑,使用新的 memberApi 替代 medicationApimaster
2 changed files with 25 additions and 2 deletions
@ -0,0 +1,23 @@ |
|||||
|
import http from '../common/axios.js' |
||||
|
|
||||
|
// 账号密码登录
|
||||
|
function medication_login(data) { |
||||
|
let url = '/dnseyeapi/Login/login' |
||||
|
return http.post(url, data).then(res => { |
||||
|
return res; |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//登录
|
||||
|
function login(data) { |
||||
|
let url = '/login' |
||||
|
return http.get(url,data).then(res => { |
||||
|
return res; |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
export default { |
||||
|
login, |
||||
|
medication_login, |
||||
|
} |
||||
Loading…
Reference in new issue