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
d2e84dda
Commit
d2e84dda
authored
1 year ago
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref: 演示功能入口 优化跳转错误时回调
parent
3eb93f8a
Pipeline
#85158
waiting for manual action with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
index.js
src/pages/bootpage/demonstration/index.js
+11
-0
No files found.
src/pages/bootpage/demonstration/index.js
View file @
d2e84dda
...
...
@@ -296,6 +296,11 @@ const Demonstration = props => {
setLoading
(
false
);
});
};
const
handError
=
err
=>
{
setJumpLoading
(
false
);
};
useEffect
(()
=>
{
const
handleToggleIndustry
=
event
=>
{
props
.
history
&&
props
.
history
.
push
(
`/?client=
${
props
.
global
.
client
}
`
);
...
...
@@ -307,6 +312,12 @@ const Demonstration = props => {
window
.
share
.
event
.
removeListener
(
'toggleIndustry'
,
handleToggleIndustry
);
};
},
[
props
]);
useEffect
(()
=>
{
window
.
share
.
event
.
on
(
'loginError'
,
handError
);
return
()
=>
{
window
.
share
.
event
.
removeListener
(
'loginError'
,
handError
);
};
},
[
jumpLoading
]);
useEffect
(()
=>
{
getData
();
window
.
addEventListener
(
'resize'
,
debounce
(
onResize
,
300
));
...
...
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