Browse Source
- 新增 member.js 文件,实现账号密码登录和普通登录功能 - 修改 login.vue 中的登录逻辑,使用新的 memberApi 替代 medicationApimaster
1 changed files with 0 additions and 23 deletions
@ -1,23 +0,0 @@ |
|||||
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