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
7f9b73da
authored
2025-01-23 16:55:03 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 消息
1 parent
92c6775f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/layouts/index.vue
src/store/modules/user.ts
src/layouts/index.vue
View file @
7f9b73d
...
...
@@ -256,12 +256,12 @@ const messageAllRead = () => {
}
const
createServerConnect
=
()
=>
{
let
websocketUrl
=
'192.168.6.20:39203'
;
let
websocketUrl
=
'
ws://
192.168.6.20:39203'
;
//测试环境
if
(
location
.
origin
==
'https://daop-zcgl-test.zgsjzc.com'
)
{
websocketUrl
=
'daop-zcgl-test-websocket.zgsjzc.com'
websocketUrl
=
'
wss://
daop-zcgl-test-websocket.zgsjzc.com'
}
const
ws
=
new
WebSocket
(
`
ws://
${
websocketUrl
}
/websocket/
${
userData
.
staffGuid
}
`
);
const
ws
=
new
WebSocket
(
`
${
websocketUrl
}
/websocket/
${
userData
.
staffGuid
}
`
);
ws
.
onopen
=
function
()
{
console
.
log
(
'Connected to server.'
);
};
...
...
src/store/modules/user.ts
View file @
7f9b73d
...
...
@@ -33,7 +33,7 @@ const useUserStore = defineStore(
function
getToken
(
data
,
state
)
{
data
.
platformGuid
=
"7f16f697aec111ef8656fa163e60becd"
;
data
.
userType
=
2
;
data
.
appKey
=
'672c2
bf2e4b0cac8732a6104
'
;
data
.
appKey
=
'672c2
c38e4b0cac8732a6106
'
;
data
.
validateUri
=
location
.
origin
==
'http://localhost:9000'
?
'http://localhost:9000/'
:
location
.
origin
+
'/'
;
return
getTokenPromise
.
value
=
getTokenByCode
(
data
).
then
((
res
:
any
)
=>
{
getTokenPromise
.
value
=
null
;
...
...
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