Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
0e366386
Commit
0e366386
authored
Jun 29, 2020
by
luoxj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改资源404
parent
5b978716
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
index.ftl
src/main/webapp/WEB-INF/manager/index.ftl
+13
-13
No files found.
src/main/webapp/WEB-INF/manager/index.ftl
View file @
0e366386
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
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