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
c28ae00f
Commit
c28ae00f
authored
Mar 17, 2022
by
邓晓峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://g.civnet.cn:8443/ReactWeb5/CivWeb
parents
48ef09be
591c803b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
ExtendRightContent.js
src/components/GlobalHeader/ExtendRightContent.js
+6
-6
BasicLayout1.js
src/layouts/BasicLayout1.js
+1
-1
No files found.
src/components/GlobalHeader/ExtendRightContent.js
View file @
c28ae00f
...
...
@@ -129,12 +129,12 @@ const GlobalHeaderRight = props => {
url
=
`civweb4/
${
url
.
replace
(
/^
\/
/
,
''
).
replace
(
/^civweb4
\/
/
,
''
)}
`
}
window
.
share
.
event
.
emit
(
'goHome'
,
`/
${
url
}
`
);
url
?
(
window
.
share
.
event
.
emit
(
'listenerMointer'
,
{
label
:
'首页'
,
url
:
url
.
replace
(
/^civweb4
\/
/
,
''
),
})
)
:
null
;
//
url ? (
//
window.share.event.emit('listenerMointer', {
//
label: '首页',
//
url: url.replace(/^civweb4\//, ''),
//
})
//
) : null;
};
...
...
src/layouts/BasicLayout1.js
View file @
c28ae00f
...
...
@@ -362,7 +362,7 @@ const BasicLayout = props => {
if
(
!
Cookies
.
get
(
'token'
))
{
let
client
=
props
.
global
&&
props
.
global
.
client
;
client
=
client
!==
'undefined'
&&
!
_
.
isNull
(
client
)
&&
!
_
.
isUndefined
(
client
)
?
client
:
'city'
;
let
generateType
=
props
.
global
&&
props
.
global
.
hasOwnProperty
(
'get'
)
&&
props
.
global
.
get
(
'generateType'
)
;
let
generateType
=
props
.
global
&&
props
.
global
.
hasOwnProperty
(
'get'
)
?
props
.
global
.
get
(
'generateType'
)
:
null
;
generateType
=
!
_
.
isNull
(
generateType
)
&&
!
_
.
isUndefined
(
generateType
)
&&
generateType
!==
'undefined'
?
`&generateType=
${
generateType
}
`
:
''
;
history
.
replace
(
`/user/login?client=
${
client
}${
generateType
}
`
);
props
.
logout
();
...
...
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