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
773150f6
Commit
773150f6
authored
May 27, 2024
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 演示功能 在一些报错情况下,停止loading,跳转成功前进度条100%
parent
aebc19d3
Pipeline
#89095
waiting for manual action with stages
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
login.js
src/pages/bootpage/demonstration/components/login.js
+0
-0
index.js
src/pages/bootpage/demonstration/index.js
+10
-2
No files found.
src/pages/bootpage/demonstration/components/login.js
0 → 100644
View file @
773150f6
This diff is collapsed.
Click to expand it.
src/pages/bootpage/demonstration/index.js
View file @
773150f6
...
...
@@ -17,12 +17,12 @@ import { encode } from 'js-base64';
import
{
appService
}
from
'@/api'
;
import
{
actionCreators
}
from
'@/containers/App/store'
;
import
{
connect
}
from
'react-redux'
;
import
LoginAction
from
'@/pages/user/login/login'
;
import
classNames
from
'classnames'
;
import
{
defaultApp
}
from
'@/micro'
;
import
Iframe
from
'@/components/Container/Iframe'
;
import
moment
from
'moment'
;
import
LoadPage
from
'@/components/LoadPage'
;
import
LoginAction
from
'./components/login'
;
import
useFullScreen
from
'./components/useFullScreen'
;
import
styles
from
'./index.less'
;
import
LeftItem
from
'./components/Left'
;
...
...
@@ -378,8 +378,13 @@ const Demonstration = props => {
setLoading
(
false
);
});
};
const
onendLoading
=
()
=>
{
jumpProgressEnd
();
};
const
handError
=
err
=>
{
if
(
err
)
{
message
.
error
(
err
);
}
setJumpLoading
(
false
);
jumpProgressEnd
();
};
...
...
@@ -418,8 +423,11 @@ const Demonstration = props => {
},
[
props
]);
useEffect
(()
=>
{
window
.
share
.
event
.
on
(
'loginError'
,
handError
);
// 结束跳转loading
window
.
share
.
event
.
on
(
'onendLoading'
,
onendLoading
);
return
()
=>
{
window
.
share
.
event
.
removeListener
(
'loginError'
,
handError
);
window
.
share
.
event
.
removeListener
(
'onendLoading'
,
onendLoading
);
};
},
[
jumpLoading
]);
useEffect
(()
=>
{
...
...
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