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
62dce9af
Commit
62dce9af
authored
Jan 29, 2023
by
杨思琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: client调整
parent
f646be85
Pipeline
#66564
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
reducer.js
src/containers/App/store/reducer.js
+4
-2
BasicLayout.js
src/layouts/BasicLayout.js
+3
-1
No files found.
src/containers/App/store/reducer.js
View file @
62dce9af
import
{
fromJS
}
from
'immutable'
;
import
Cookies
from
'js-cookie'
;
import
{
AppConfig
,
store
,
event
,
Storage
,
helpers
}
from
'@wisdom-utils/utils'
;
import
{
Storeage
as
Store
}
from
'@wisdom-utils/utils/lib/helpers'
;
import
{
params
,
Storeage
as
Store
}
from
'@wisdom-utils/utils/lib/helpers'
;
import
defaultSetting
from
'@wisdom-utils/components/lib/AppLayout/layouts/defaultSettings'
;
import
_
from
'lodash'
;
import
memoized
from
'nano-memoize'
;
...
...
@@ -43,7 +43,9 @@ const keywordStorage = new Storage(`__global_search_keywords__micro_${window.loc
const
recentVisitedStorage
=
new
Storage
(
`__global_recent_visited__micro_
${
window
.
location
.
hostname
}
`
);
const
recentProductStorage
=
new
Storage
(
`__global__recent_product__micro_
${
window
.
location
.
hostname
}
`
);
const
currentProduct
=
new
Store
(
`__global__recent_productIndex__micro_
${
window
.
location
.
hostname
}
_
${
sessionStorage
.
getItem
(
'client'
)
||
'city'
}
`
,
`__global__recent_productIndex__micro_
${
window
.
location
.
hostname
}
_
${
params
.
getParams
(
'client'
)
||
sessionStorage
.
getItem
(
'client'
)
||
'city'
}
`
,
);
Cookies
.
set
(
'loginMode'
,
Cookies
.
get
(
'loginMode'
)
||
'pdw'
);
export
const
initialState
=
fromJS
({
...
...
src/layouts/BasicLayout.js
View file @
62dce9af
...
...
@@ -246,7 +246,9 @@ const transformFloatMenu = (routes, homepage) => {
const
Layout
=
props
=>
{
const
currentProduct
=
new
Store
(
`__global__recent_productIndex__micro_
${
window
.
location
.
hostname
}
_
${
sessionStorage
.
getItem
(
'client'
)
||
'city'
}
`
,
`__global__recent_productIndex__micro_
${
window
.
location
.
hostname
}
_
${
params
.
getParams
(
'client'
)
||
sessionStorage
.
getItem
(
'client'
)
||
'city'
}
`
,
);
const
menuState
=
sessionStorage
.
getItem
(
'menuState'
)
||
'open'
;
const
[
cityData
,
setCityData
]
=
useState
({});
...
...
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