api.js

2021-03-08 13:26

阅读:474

标签: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;

api.js

标签:main   imp   The   password   data   ===   let   登陆   log   

原文地址:https://www.cnblogs.com/zhaofeis/p/12797925.html


评论


亲,登录后才可以留言!