Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend-h5
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
songrui
frontend-h5
Commits
f88228a5
Commit
f88228a5
authored
6 months ago
by
songrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
im 收到新消息 修改
parent
1cfcbe8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
Session.vue
src/residentWX/nim/Session.vue
+8
-4
vue.config.js
vue.config.js
+4
-4
No files found.
src/residentWX/nim/Session.vue
View file @
f88228a5
...
...
@@ -176,13 +176,17 @@ export default {
},
onmsg
:
(
msg
)
=>
{
console
.
log
(
'收到新消息===========>'
,
msg
);
this
.
msgs
.
push
(
msg
)
this
.
toBottom
()
if
(
msg
.
from
===
this
.
targetId
)
{
this
.
msgs
.
push
(
msg
)
this
.
toBottom
()
}
},
onofflinemsgs
:
(
obj
)
=>
{
console
.
log
(
'收到离线消息===========>'
,
obj
);
this
.
msgs
.
push
(...
obj
.
msgs
)
this
.
toBottom
()
if
(
obj
.
to
===
this
.
targetId
)
{
this
.
msgs
.
push
(...
obj
.
msgs
)
this
.
toBottom
()
}
}
})
},
...
...
This diff is collapsed.
Click to expand it.
vue.config.js
View file @
f88228a5
...
...
@@ -39,12 +39,12 @@ module.exports = defineConfig({
}
},
'/chronic-resident'
:
{
target
:
'http://192.168.1.125:8903'
,
//
target: 'https://beta-tumour.zmnyjk.com',
//
target: 'http://192.168.1.125:8903',
target
:
'https://beta-tumour.zmnyjk.com'
,
changOrigin
:
true
,
pathRewrite
:
{
'^/chronic-resident'
:
'/'
,
//
'^/chronic-resident': '/chronic-resident'
//
'^/chronic-resident': '/',
'^/chronic-resident'
:
'/chronic-resident'
}
}
},
...
...
This diff is collapsed.
Click to expand it.
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