权限开发,页面交互开发,增加阅读数
This commit is contained in:
@@ -74,16 +74,22 @@
|
||||
app.passwordError = "密码不能为空";
|
||||
return;
|
||||
}
|
||||
post(ctx + "login", param, function (result) {
|
||||
console.log(result);
|
||||
if (result.errCode == 200) {
|
||||
location.href = ctx + "static/manage/home.html";
|
||||
} else {
|
||||
app.passwordError = "登录失败," + result.errMsg;
|
||||
}
|
||||
}, function(){
|
||||
// 通过nginx代理之后没端口,但tomcat容器有端口,会跨域异常,但正常登陆了的,直接跳
|
||||
location.href = ctx + "static/manage/home.html";
|
||||
var returnUrl = common.getParam("returnUrl");
|
||||
if (!!returnUrl) {
|
||||
returnUrl = decodeURI(returnUrl);
|
||||
} else {
|
||||
returnUrl = ctx + "static/manage/home.html";
|
||||
}
|
||||
post(ctx + "login", param, function (result) {
|
||||
console.log(result);
|
||||
if (result.errCode == 200) {
|
||||
location.href = returnUrl;
|
||||
} else {
|
||||
app.passwordError = "登录失败," + result.errMsg;
|
||||
}
|
||||
}, function () {
|
||||
// 通过nginx代理之后没端口,但tomcat容器有端口,会跨域异常,但正常登陆了的,直接跳
|
||||
// location.href = returnUrl;
|
||||
});
|
||||
},
|
||||
init: function () {
|
||||
|
||||
Reference in New Issue
Block a user