Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b987684f
authored
2025-11-27 10:28:15 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改消息服务
1 parent
9aa1334e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/layouts/index.vue
src/layouts/index.vue
View file @
b987684
...
...
@@ -276,10 +276,10 @@ const messageAllRead = () => {
const
createServerConnect
=
()
=>
{
let
websocketUrl
=
'ws://192.168.6.20:39203'
;
//测试环境
if
(
location
.
origin
==
'https://sz-
zcgl
.zgsjzc.com'
)
{
websocketUrl
=
'wss://sz-
zcgl
.zgsjzc.com/websocket'
}
else
if
(
location
.
origin
==
'https://daop-
zcgl
-test.zgsjzc.com'
)
{
websocketUrl
=
'wss://daop-
zcgl
-test.zgsjzc.com/websocket'
if
(
location
.
origin
==
'https://sz-
tds
.zgsjzc.com'
)
{
websocketUrl
=
'wss://sz-
tds
.zgsjzc.com/websocket'
}
else
if
(
location
.
origin
==
'https://daop-
tds
-test.zgsjzc.com'
)
{
websocketUrl
=
'wss://daop-
tds
-test.zgsjzc.com/websocket'
}
const
ws
=
new
WebSocket
(
`
${
websocketUrl
}
/websocket/
${
userData
.
staffGuid
}
`
);
ws
.
onopen
=
function
()
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment