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
43f2a4ee
Commit
43f2a4ee
authored
Mar 21, 2025
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改刷新时无法直接到集成登录页的问题
parent
27dcc564
Pipeline
#96435
passed with stages
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
5 deletions
+14
-5
BasicLayout.js
src/layouts/BasicLayout.js
+2
-2
micro.js
src/micro.js
+1
-1
index.js
src/pages/bootpage/template/integrationNew/index.js
+5
-0
login.js
src/pages/user/login/login.js
+6
-2
No files found.
src/layouts/BasicLayout.js
View file @
43f2a4ee
...
@@ -492,7 +492,7 @@ const Layout = props => {
...
@@ -492,7 +492,7 @@ const Layout = props => {
// localStorage.removeItem('integrationData');
// localStorage.removeItem('integrationData');
}
}
// window.qiankunIsCache = false;
// window.qiankunIsCache = false;
history
.
push
(
'/
I
ndustry'
);
history
.
push
(
'/
i
ndustry'
);
}
}
// 非云平台不做响应
// 非云平台不做响应
if
(
!
props
.
global
.
get
(
'userInfo.site'
))
{
if
(
!
props
.
global
.
get
(
'userInfo.site'
))
{
...
@@ -512,7 +512,7 @@ const Layout = props => {
...
@@ -512,7 +512,7 @@ const Layout = props => {
const
Industries
=
props
.
global
.
get
(
'userInfo.Industries'
);
const
Industries
=
props
.
global
.
get
(
'userInfo.Industries'
);
if
(
Industries
&&
Industries
.
length
>
1
)
{
if
(
Industries
&&
Industries
.
length
>
1
)
{
window
.
qiankunIsCache
=
false
;
window
.
qiankunIsCache
=
false
;
history
.
push
(
'/
I
ndustry'
);
history
.
push
(
'/
i
ndustry'
);
}
}
};
};
// useEffect(async () => {
// useEffect(async () => {
...
...
src/micro.js
View file @
43f2a4ee
...
@@ -392,7 +392,7 @@ export const defaultApp = (setUrl) => {
...
@@ -392,7 +392,7 @@ export const defaultApp = (setUrl) => {
const
config
=
window
.
globalConfig
;
const
config
=
window
.
globalConfig
;
if
(
config
&&
config
.
token
)
{
if
(
config
&&
config
.
token
)
{
let
url
=
!
config
.
home
?
let
url
=
!
config
.
home
?
((
config
.
homepage
===
''
||
_
.
isNull
(
config
.
homepage
))
?
`/civbase/civweb4`
:
(
`/civbase/
${
config
.
homepage
.
replace
(
/^
\/
/
,
''
)}
`
))
:
`/civbase/
${
config
.
homepage
.
replace
(
/^
\/
/
,
''
)}
`
;
((
!
config
.
homepage
||
_
.
isNull
(
config
.
homepage
))
?
`/civbase/civweb4`
:
(
`/civbase/
${
config
.
homepage
.
replace
(
/^
\/
/
,
''
)}
`
))
:
`/civbase/
${
config
.
homepage
.
replace
(
/^
\/
/
,
''
)}
`
;
if
(
/civweb4/
.
test
(
setUrl
||
url
))
{
if
(
/civweb4/
.
test
(
setUrl
||
url
))
{
window
.
qiankunIsCache
=
false
;
window
.
qiankunIsCache
=
false
;
console
.
log
(
"请升级首页功能"
);
console
.
log
(
"请升级首页功能"
);
...
...
src/pages/bootpage/template/integrationNew/index.js
View file @
43f2a4ee
...
@@ -227,6 +227,10 @@ const IntegrationNew = props => {
...
@@ -227,6 +227,10 @@ const IntegrationNew = props => {
jumpProgressStart();
jumpProgressStart();
startTiming(loadingTime);
startTiming(loadingTime);
window.jumpLoadingProgress = 99;
window.jumpLoadingProgress = 99;
// if (loginA.globalConfig?.size === 0 && window.globalConfig) {
// loginA.updateConfig(window.globalConfig);
// }
loginA && loginA.getUserInfoAndConfig('', true, item.type);
loginA && loginA.getUserInfoAndConfig('', true, item.type);
};
};
const onLink = (item, loginA) => {
const onLink = (item, loginA) => {
...
@@ -381,6 +385,7 @@ const IntegrationNew = props => {
...
@@ -381,6 +385,7 @@ const IntegrationNew = props => {
const handleError = () => {
const handleError = () => {
setJumpLoading(false);
setJumpLoading(false);
jumpProgressEnd();
jumpProgressEnd();
window.jumpLoadingProgress = 0;
};
};
loginAction.events.on('toggleIndustry', handleToggleIndustry);
loginAction.events.on('toggleIndustry', handleToggleIndustry);
loginAction.events.on('loginError', handleError);
loginAction.events.on('loginError', handleError);
...
...
src/pages/user/login/login.js
View file @
43f2a4ee
...
@@ -9,6 +9,8 @@ import { appService, noticeService } from '@/api';
...
@@ -9,6 +9,8 @@ import { appService, noticeService } from '@/api';
import
{
getUserInfo
,
getWebSiteConfig
}
from
'@/api/service/base'
;
import
{
getUserInfo
,
getWebSiteConfig
}
from
'@/api/service/base'
;
import
{
SERVICE_APP_LOGIN_MODE
,
SERVICE_INTERFACE_SUCCESS_CODE
,
WX_REDIRECT_URI
}
from
'@/constants'
;
import
{
SERVICE_APP_LOGIN_MODE
,
SERVICE_INTERFACE_SUCCESS_CODE
,
WX_REDIRECT_URI
}
from
'@/constants'
;
import
store
from
'@/stores'
;
import
store
from
'@/stores'
;
import
{
defaultApp
}
from
'@/micro'
;
import
{
import
{
DEFAULT_MQTT_PATH
,
DEFAULT_MQTT_PATH
,
DEFAULT_TCP_IP
,
DEFAULT_TCP_IP
,
...
@@ -308,7 +310,7 @@ class Login {
...
@@ -308,7 +310,7 @@ class Login {
self
.
globalConfig
.
userInfo
=
window
?.
globalConfig
?.
transformUserInfo
?.(
response
.
data
)
??
{};
self
.
globalConfig
.
userInfo
=
window
?.
globalConfig
?.
transformUserInfo
?.(
response
.
data
)
??
{};
self
.
updateConfig
&&
self
.
updateConfig
(
self
.
globalConfig
);
self
.
updateConfig
&&
self
.
updateConfig
(
self
.
globalConfig
);
let
flag
=
tru
e
;
let
flag
=
fals
e
;
const
loginMode
=
Cookies
.
get
(
'loginMode'
);
const
loginMode
=
Cookies
.
get
(
'loginMode'
);
if
(
loginMode
===
'qywx'
)
{
if
(
loginMode
===
'qywx'
)
{
flag
=
false
;
flag
=
false
;
...
@@ -393,7 +395,9 @@ class Login {
...
@@ -393,7 +395,9 @@ class Login {
if
(
this
.
globalConfig
.
isIntegration
>=
1
&&
this
.
integratedNum
>=
2
)
{
if
(
this
.
globalConfig
.
isIntegration
>=
1
&&
this
.
integratedNum
>=
2
)
{
this
.
createContext
(
this
);
this
.
createContext
(
this
);
this
.
updateConfig
&&
this
.
updateConfig
(
this
.
globalConfig
);
this
.
updateConfig
&&
this
.
updateConfig
(
this
.
globalConfig
);
this
.
events
&&
this
.
events
.
emit
(
'loginIndustry'
);
// this.events && this.events.emit('loginIndustry');
// 修改刷新时,this.events.emit('loginIndustry') 无法跳转到过渡页
defaultApp
(
`/civbase/industry`
);
return
false
;
return
false
;
}
}
}
}
...
...
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