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
f1f00349
Commit
f1f00349
authored
Mar 19, 2025
by
陶晶晶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:集成登录第一次跳转时页面置灰问题排查
parent
0c00ff0e
Pipeline
#96352
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
index.js
src/pages/bootpage/template/project/wuliangye/index.js
+7
-3
No files found.
src/pages/bootpage/template/project/wuliangye/index.js
View file @
f1f00349
...
...
@@ -46,7 +46,7 @@ const IntegrationQinzhou = props => {
const
jpRef
=
useRef
();
const
cardRef
=
useRef
();
const
integrationClient
=
integratedConfig
?.
client
||
window
?.
globalConfig
?.
client
||
'city'
;
// 集成登录client
const
[
integrationData
,
setIntegrationData
]
=
useState
({});
// 所有子站
const
[
integrationData
,
setIntegrationData
]
=
useState
(
JSON
.
parse
(
localStorage
.
getItem
(
'integrationData'
))
||
{});
// 所有子站
const
loadingTime
=
integratedConfig
?.
loadingTime
||
5
;
const
clientInfo
=
useRef
({});
// 跳转子站信息
...
...
@@ -73,7 +73,7 @@ const IntegrationQinzhou = props => {
const
[
linkUrl
,
setLinkUrl
]
=
useState
(
''
);
const
[
jumpLoading
,
setJumpLoading
]
=
useState
(
false
);
const
[
progressValue2
,
setProgressValue2
]
=
useState
(
0
);
const
[
showBackBtn
,
setShowBackBtn
]
=
useState
(
tru
e
);
// 是否显示iframe 返回按钮,三维平台用
const
[
showBackBtn
,
setShowBackBtn
]
=
useState
(
fals
e
);
// 是否显示iframe 返回按钮,三维平台用
const
[
loginAction
,
setAction
]
=
useState
(()
=>
new
LoginAction
(
props
));
const
configName
=
'集成配置文件'
;
...
...
@@ -113,12 +113,14 @@ const IntegrationQinzhou = props => {
client
,
})
.
then
(
res1
=>
{
console
.
log
(
'res1:'
,
res1
);
const
list
=
res1
.
data
||
[];
list
.
length
&&
localStorage
.
setItem
(
'integrationData'
,
JSON
.
stringify
(
list
));
const
obj
=
{};
list
.
forEach
(
i
=>
{
obj
[
i
.
name
]
=
i
;
});
list
.
length
&&
localStorage
.
setItem
(
'integrationData'
,
JSON
.
stringify
(
obj
));
setIntegrationData
(
obj
);
});
};
...
...
@@ -298,6 +300,8 @@ const IntegrationQinzhou = props => {
};
useEffect(() => {
console.log('componentDidmount--come:');
getData();
window.addEventListener('resize', debounce(onResize, 300));
onResize();
...
...
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