Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sdream-ai-fe
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
侯明涛
sdream-ai-fe
Commits
2ae3f5ff
Commit
2ae3f5ff
authored
Dec 17, 2025
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:传入空字符串也需要存入sessionStorage中
parent
4a6d1a42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/routes/RouteChangeHandler.tsx
+8
-8
No files found.
src/routes/RouteChangeHandler.tsx
View file @
2ae3f5ff
...
...
@@ -28,14 +28,14 @@ export function withRouteChangeHandler(WrappedComponent: React.ComponentType) {
// 在重定向前缓存查询参数,供 /tactics 页读取(避免 from 被清理导致丢失)
try
{
if
(
place
)
{
const
userMeta
=
{
cstId
:
searchParams
.
get
(
'cstId'
)
||
undefined
,
userId
:
searchParams
.
get
(
'userId'
)
||
undefined
,
numberType
:
searchParams
.
get
(
'numberType'
)
||
undefined
,
place
,
busiType
:
'02'
,
busiId
:
searchParams
.
get
(
'userId'
)
||
undefined
,
}
const
userMeta
=
{
cstId
:
searchParams
.
get
(
'cstId'
)
??
undefined
,
userId
:
searchParams
.
get
(
'userId'
)
??
undefined
,
numberType
:
searchParams
.
get
(
'numberType'
)
??
undefined
,
place
,
busiType
:
'02'
,
busiId
:
searchParams
.
get
(
'userId'
)
??
undefined
,
}
sessionStorage
.
setItem
(
'userMeta'
,
JSON
.
stringify
(
userMeta
))
}
else
{
...
...
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