Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
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
ReactWeb5
CivWeb
Commits
f5eed96d
Commit
f5eed96d
authored
Jul 14, 2022
by
程恺文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 设置定时器3分钟执行一次
parent
39470bf3
Pipeline
#55323
waiting for manual action with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
index.js
src/pages/user/login/template/energy_GZ/index.js
+13
-1
No files found.
src/pages/user/login/template/energy_GZ/index.js
View file @
f5eed96d
...
...
@@ -46,7 +46,10 @@ class HuaNongLogin extends Component {
this
.
setSubmitting
(
true
);
this
.
props
.
updateCurrentIndex
(
-
1
);
//没取到0id 要给定时器
setInterval
(()
=>
{
if
(
window
.
gzTime
){
clearInterval
(
window
.
gzTime
)
}
setTimeout
(()
=>
{
appService
.
getInOnLine
({
UserID
:
globalConfig
.
userInfo
.
oid
,
...
...
@@ -55,6 +58,15 @@ class HuaNongLogin extends Component {
Oid
:
this
.
_createGuid
(),
})
},
10000
)
window
.
gzTime
=
setInterval
(()
=>
{
appService
.
getInOnLine
({
UserID
:
globalConfig
.
userInfo
.
oid
,
SatrtDate
:
this
.
getNowDate
(),
Port
:
location
.
port
,
Oid
:
this
.
_createGuid
(),
})
},
180000
)
};
onActinoChange
=
action
=>
{
...
...
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