退出bug

beetlsql3-dev
Mlxa0324 2 years ago
parent ec864f525a
commit 5892148dd2

@ -414,13 +414,8 @@
var ret = Common.postAjax("/logout.json");
if (ret.code == 0 || ret.code == 401) {
Common.info("退出成功!");
var host = '${request.requestURL}'.replaceAll(/\/server.*/g, '');
Common.awaitTime(1200, function () {
if('${profile!}' === 'prod' && '${studentTeacherURL!}' != '') {
window.location.href = '${studentTeacherURL!}';
} else {
window.location.href = host + '/server';
}
window.location.href = host + ('${profile!}' === 'prod' ? '/' : '/server');
});
}
});

Loading…
Cancel
Save