Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
precision-effect
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
耿迪迪
precision-effect
Commits
eb27f3a0
Commit
eb27f3a0
authored
Jul 08, 2023
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息修改
parent
8e6e78be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Message.vue
...sion-effect-web/src/layout/components/Message/Message.vue
+4
-0
No files found.
precision-effect-web/src/layout/components/Message/Message.vue
View file @
eb27f3a0
...
...
@@ -67,6 +67,7 @@
if
(
!
this
.
$websocket
.
isExsitWebsocket
()){
this
.
$websocket
.
initWebSocket
(
process
.
env
.
VUE_APP_WEBSOCKET_URL
+
this
.
$store
.
state
.
user
.
userId
);
this
.
$websocket
.
addEvent
(
"onmessage"
,(
msg
)
=>
{
console
.
log
(
"fsfdfd------"
,
msg
)
if
(
msg
.
data
){
console
.
log
(
"您有新的消息请注意接收:"
,
JSON
.
parse
(
msg
.
data
));
this
.
msgInfo
=
JSON
.
parse
(
msg
.
data
);
...
...
@@ -78,6 +79,9 @@
this.msgInfo.push(msgData);
}*/
}
if
(
msg
.
data
==
""
){
this
.
msgInfo
=
[];
}
});
}
},
...
...
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