提交 8b8ecb51 编写于 作者: NoSubject's avatar NoSubject

sessionStorageEnable设置修复

上级 5eb9a417
...@@ -435,6 +435,7 @@ MWF.xDesktop.Authentication.LoginForm = new Class({ ...@@ -435,6 +435,7 @@ MWF.xDesktop.Authentication.LoginForm = new Class({
var code = this.crypDES(); var code = this.crypDES();
var json = { "client": "face", "token": code }; var json = { "client": "face", "token": code };
var _self = this;
var res = new Request.JSON({ var res = new Request.JSON({
"method": "POST", "method": "POST",
"url": url + "/jaxrs/sso", "url": url + "/jaxrs/sso",
...@@ -447,14 +448,16 @@ MWF.xDesktop.Authentication.LoginForm = new Class({ ...@@ -447,14 +448,16 @@ MWF.xDesktop.Authentication.LoginForm = new Class({
"Content-Type": "application/json; charset=utf-8" "Content-Type": "application/json; charset=utf-8"
}, },
onSuccess: function (responseJSON) { onSuccess: function (responseJSON) {
this._close(); _self._close();
this.closeCamera(); _self.closeCamera();
if (this.formMaskNode) this.formMaskNode.destroy(); if (_self.formMaskNode) _self.formMaskNode.destroy();
this.formAreaNode.destroy(); _self.formAreaNode.destroy();
if (this.explorer && this.explorer.view) this.explorer.view.reload(); var xToken = this.getHeader(o2.tokenName);
if (this.app) this.app.notice(this.lp.loginSuccess, "success"); if (layout.config && layout.config.sessionStorageEnable) sessionStorage.setItem("o2LayoutSessionToken", xToken);
this.fireEvent("postOk", responseJSON); if (_self.explorer && _self.explorer.view) _self.explorer.view.reload();
}.bind(this), if (_self.app) _self.app.notice(_self.lp.loginSuccess, "success");
_self.fireEvent("postOk", responseJSON);
},
onError: function () { onError: function () {
this.cameraLoginVideoInfoNode.set("text", MWF.LP.desktop.login.camera_loginError2); this.cameraLoginVideoInfoNode.set("text", MWF.LP.desktop.login.camera_loginError2);
}.bind(this) }.bind(this)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册