Commit 7575e4f5 by Jie Feng

bug fix

parent b3ef6aae
...@@ -18,6 +18,7 @@ $(document).ready(function () { ...@@ -18,6 +18,7 @@ $(document).ready(function () {
success: function (data, status) { success: function (data, status) {
if (data.code != 200) { if (data.code != 200) {
alert(data.msg); alert(data.msg);
} else { } else {
console.log("success"); console.log("success");
window.location.href = removedParameter(window.location.href, "ticket"); window.location.href = removedParameter(window.location.href, "ticket");
...@@ -83,9 +84,10 @@ function logout(){ ...@@ -83,9 +84,10 @@ function logout(){
success: function (data, status) { success: function (data, status) {
if (data.code != 200) { if (data.code != 200) {
alert(data.msg); alert(data.msg);
window.location.href = "http://testcas.yidianling.com/login.html?url=" + window.location.href;
} else { } else {
console.log("success"); console.log("success");
window.location.reload(); window.location.href=removedParameter(window.location.href, "ticket");
} }
} }
}); });
......
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