Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
0e366386
Commit
0e366386
authored
Jun 29, 2020
by
luoxj
Browse files
修改资源404
parent
5b978716
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/manager/index.ftl
View file @
0e366386
...
...
@@ -277,18 +277,18 @@
})
},
connect
:
function
()
{
var
that
=
this
var
sockjs
=
new
S
ockJS
(
"/websocket"
)
;
var
stompClient
=
S
tomp
.over
(
sockjs
)
;
stompClient
.connect
({},
function
(
frame
)
{
stompClient
.subscribe
(
'/
topic
/
message
/'
+$
{
S
ession
.manager_session.managerId
},
function
(
greeting
)
{
if
(
greeting
.body
==
"list"
)
{
that
.getMessage
()
}
})
;
})
;
},
<#-
-
connect
:
function
()
{
-
->
<#--
var
that
=
this
--
>
<#--
var
sockjs
=
new
S
ockJS
(
"/websocket"
)
;
-
->
<#--
var
stompClient
=
S
tomp
.over
(
sockjs
)
;
-
->
<#--
stompClient
.connect
({},
function
(
frame
)
{
-
->
<#--
stompClient
.subscribe
(
'/
topic
/
message
/'
+$
{
S
ession
.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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment