Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bh_face_counter
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄天晨
bh_face_counter
Commits
2d21f5ac
Commit
2d21f5ac
authored
Jun 30, 2020
by
zeven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
使用单例socket,防止生成多个socket对象
parent
360778c1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
android
android
+1
-1
authInterval.js
src/utils/authInterval.js
+1
-0
No files found.
android
@
ec483800
Subproject commit
24e88792277dde5f5560c1ae701ffbdcb9e47969
Subproject commit
ec483800d0628a4bb42449e145a88caee190d2b6
src/utils/authInterval.js
View file @
2d21f5ac
...
...
@@ -9,6 +9,7 @@ export async function counterInterval(dispatch, expiresIn, reload) {
window
.
socket
||
new
SocketIO
(
axios
.
defaults
.
baseURL
,
{
query
:
`token=
${
window
.
auth
.
token
}
`
,
single
:
true
,
});
window
.
socket
.
connect
();
// window.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