Commit dcefbeb0 by 梁建民

js

parent daf50cab
Showing with 1 additions and 7 deletions
......@@ -268,13 +268,13 @@
opt.isClick = true;
IcController.getData(apis.authlogin, 'POST', data.field, function (res) {
if (res.err_code == 0) {
//注入token
Util.setCookie('token', res.data.access_token, 1, cookieHostname);
window.location.href = home_url + '/homes';
} else {
layer.msg(res.err_msg);
......@@ -283,12 +283,9 @@
$(data.elem).removeClass("layui-btn-disabled");
}
});
}
} else {
}
});
......@@ -319,12 +316,9 @@
$(data.elem).removeClass("layui-btn-disabled");
}
});
}
} else {
}
});
return this;
......
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 sign in to comment