Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
c6484593
Commit
c6484593
authored
Dec 26, 2018
by
郑杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复用户、角色、权限、添加或修改报错时再次添加后关联数据重复的问题
parent
ad34f06a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/views/monitor/log/msg.vue
+2
-1
No files found.
src/views/monitor/log/msg.vue
View file @
c6484593
...
...
@@ -75,7 +75,8 @@ export default {
},
connection
(
_this
)
{
// 建立连接对象,注意部署到线上后也要修改对应的地址
const
socket
=
new
SockJS
(
'http://localhost:/websocket?token=kl'
)
// 连接服务端提供的通信接口,连接以后才可以订阅广播消息和个人消息
// const socket = new SockJS('http://localhost:/websocket?token=kl')// 连接服务端提供的通信接口,连接以后才可以订阅广播消息和个人消息
const
socket
=
new
SockJS
(
'http://localhost:8000/websocket?token=kl'
)
// 连接服务端提供的通信接口,连接以后才可以订阅广播消息和个人消息
// 获取STOMP子协议的客户端对象
this
.
stompClient
=
Stomp
.
over
(
socket
)
// 定义客户端的认证信息,按需求配置
...
...
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