标签:main imp The password data === let 登陆 log
import apiConfig from ‘./config‘;
let Api = {
domain: process.env.URL,
imgUrl: process.env.imgURL,
// api
/*======= 用户 =======*/
// 登陆
login(username, password) {
let data = {
username: username,
password: password
};
return apiConfig.post(‘mobile-api/login‘, data).then( response => response);
},
// 登出
logout() {
return apiConfig.get(‘mobile-api/logout‘).then(response => response);
}
};
export default Api;
标签:main imp The password data === let 登陆 log
原文地址:https://www.cnblogs.com/zhaofeis/p/12797925.html