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

websocket连接从layout.session获取token

上级 fdba9b4d
......@@ -42,7 +42,7 @@ MWF.xDesktop.WebSocket = new Class({
connect: function(){
if (layout.config.webSocketEnable){
var ws = this.ws+"?x-token="+encodeURIComponent(Cookie.read("x-token"));
var ws = this.ws+"?x-token="+encodeURIComponent(layout.session.token);
ws = o2.filterUrl(ws);
try{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册