Commit bd44fa07 authored by 杨梦雪's avatar 杨梦雪

22222

parent 88685215
......@@ -41,7 +41,16 @@ export function login(data) {
})
}
// 获取登录验证码
export function loginCode(data) {
data['identity'] = store.state.indexIdentity;
return request({
method: 'post',
url: '/web/code/loginCode',
params: data
})
}
// 退出
export function logout(data) {
data['identity'] = store.state.indexIdentity;
......
......@@ -104,6 +104,7 @@ export function request(config) {
const setAccountInfo = '/web/register/setAccountInfo';
const passMsgOld = '/web/auth/changePassOld';
const getCam = '/web/auth/getCam';
const LoginCode = '/web/code/loginCode';
const registerCode = '/web/code/registerCode';
const registerEmailCode = 'web/code/registerEmailCode';
const passwordEmailCode = 'web/code/passwordEmailCode';
......@@ -117,6 +118,7 @@ export function request(config) {
config.url.indexOf(setAccountInfo) != -1 ||
config.url.indexOf(passMsgOld) != -1 ||
config.url.indexOf(getCam) != -1 ||
config.url.indexOf(LoginCode) != -1 ||
config.url.indexOf(registerCode) != -1 ||
config.url.indexOf(registerEmailCode) != -1 ||
config.url.indexOf(passwordEmailCode) != -1 ||
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment