Commit 1d75b284 authored by 杨培's avatar 杨培

loginUrl fixed

parent ccc1decd
......@@ -40,8 +40,14 @@ module.exports = {
});
},
requestLogin: function (returnUrl) {
returnUrl = returnUrl || location.href;
location.href = this.getServerUrl("login/auth") + "?returnUrl=" + encodeURIComponent(returnUrl) + "&client=" + encodeURIComponent(location.origin);
returnUrl = returnUrl || location.href;
var url = this.getServerUrl("login/auth") + "?returnUrl=" + encodeURIComponent(returnUrl);
if (this.getUrl('') != this.getServerUrl('')) {
url += "&client=" + encodeURIComponent(this.getUrl(''))
}
location.href = url;
},
isBanshou: function () {
return !!navigator.userAgent.match(/BanShou/);
......
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