Commit 0e366386 authored by luoxj's avatar luoxj

修改资源404

parent 5b978716
......@@ -277,18 +277,18 @@
})
},
connect: function () {
var that = this
var sockjs = new SockJS("/websocket");
var stompClient = Stomp.over(sockjs);
stompClient.connect({}, function (frame) {
stompClient.subscribe('/topic/message/' +${Session.manager_session.managerId}, function (greeting) {
if (greeting.body == "list") {
that.getMessage()
}
});
});
},
<#--connect: function () {-->
<#-- var that = this-->
<#-- var sockjs = new SockJS("/websocket");-->
<#-- var stompClient = Stomp.over(sockjs);-->
<#-- stompClient.connect({}, function (frame) {-->
<#-- stompClient.subscribe('/topic/message/' +${Session.manager_session.managerId}, function (greeting) {-->
<#-- if (greeting.body == "list") {-->
<#-- that.getMessage()-->
<#-- }-->
<#-- });-->
<#-- });-->
<#--},-->
markMenu: function (title, icon) {
var menu = {
title: title,
......@@ -538,7 +538,7 @@
//setInterval(this.getMessage,3000)
// 菜单列表
this.list();
this.connect();
// this.connect();
//获取登录用户信息
this.managerGet();
var that = this;
......
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