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
1de057d1
Commit
1de057d1
authored
6 months ago
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:钦州 集成登录修改
parent
54f969e0
master
soundai
No related merge requests found
Pipeline
#93674
waiting for manual action with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
index.js
src/pages/bootpage/template/project/qinzhou/index.js
+9
-4
No files found.
src/pages/bootpage/template/project/qinzhou/index.js
View file @
1de057d1
...
...
@@ -3,7 +3,7 @@ import { FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons';
import
{
message
,
Button
}
from
'antd'
;
import
classNames
from
'classnames'
;
import
{
debounce
}
from
'lodash'
;
import
{
getImageUrl
}
from
'@/utils/utils'
;
import
{
getImageUrl
,
goToPath
}
from
'@/utils/utils'
;
import
React
,
{
useRef
,
useEffect
,
useState
,
useMemo
}
from
'react'
;
import
backImg
from
'@/assets/images/demonstration/返回.png'
;
...
...
@@ -35,6 +35,7 @@ const IntegrationQinzhou = props => {
const
[
integrationData
,
setIntegrationData
]
=
useState
({});
// 所有子站
const
loadingTime
=
integratedConfig
?.
loadingTime
||
5
;
const
clientInfo
=
useRef
({});
// 跳转子站信息
const
history
=
useHistory
();
const
{
clear
}
=
useAliveController
();
...
...
@@ -197,6 +198,7 @@ const IntegrationQinzhou = props => {
});
return
;
}
if
(
window
.
qiankunIsCache
)
{
store
.
set
(
'event:dropCache'
);
}
...
...
@@ -211,7 +213,7 @@ const IntegrationQinzhou = props => {
sessionStorage.removeItem(currentProduct);
const currentProductNew = `
__global__recent_productIndex__micro_$
{
window
.
location
.
hostname
}
_$
{
cli
||
'city'
}
`;
sessionStorage.setItem(currentProductNew, 0);
clientInfo.current = item;
clientRef.current = cli;
const config = props.global;
config.uiwidgets = [];
...
...
@@ -279,10 +281,13 @@ const IntegrationQinzhou = props => {
setJumpLoading(false);
jumpProgressEnd();
window.jumpLoadingProgress = 0;
props.updateCurrentIndex && props.updateCurrentIndex(0);
if (clientInfo.current?.url && clientInfo.current.subType === '内链') {
goToPath(clientInfo.current?.url);
} else {
props.history.push(`
/
?
client
=
$
{
clientRef
.
current
||
props
.
global
.
client
}
`);
props.updateCurrentIndex && props.updateCurrentIndex(0);
defaultApp();
}
};
const handleError = () => {
setJumpLoading(false);
...
...
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