修改资源404

This commit is contained in:
luoxj 2020-06-29 16:08:42 +08:00
parent 5b9787167f
commit 0e366386f0
1 changed files with 13 additions and 13 deletions

View File

@ -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;