Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d4561e9a
authored
2025-02-18 10:05:58 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' into release-test
2 parents
e185431b
bace42a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
src/layouts/components/Tabbar/index.vue
src/layouts/index.vue
src/layouts/components/Tabbar/index.vue
View file @
d4561e9
...
...
@@ -26,7 +26,7 @@ watch(
if
(
tab
.
fullPath
.
includes
(
jionPath
))
{
pathIndex
.
value
=
index
}
return
tab
.
fullPath
===
decodeURIComponent
(
newRouter
.
fullPath
)
;
return
tab
.
fullPath
===
newRouter
.
fullPath
;
});
if
(
isExist
.
length
==
0
)
{
if
(
pathIndex
.
value
!=
-
1
&&
routerLength
>
3
)
{
...
...
@@ -46,10 +46,10 @@ watch(
}
}
list
.
map
(
item
=>
{
item
.
fullPath
=
decodeURIComponent
(
item
.
fullPath
)
;
item
.
fullPath
=
item
.
fullPath
;
})
tabbarList
.
value
=
list
;
tabbarActive
.
value
=
decodeURIComponent
(
newRouter
.
fullPath
)
;
tabbarActive
.
value
=
newRouter
.
fullPath
;
userStore
.
setTabbar
(
tabbarList
.
value
);
userStore
.
setActiveTabbar
(
combPath
,
newRouter
.
fullPath
);
},
...
...
src/layouts/index.vue
View file @
d4561e9
...
...
@@ -177,7 +177,25 @@ const messageJump = (item) => {
});
drawerVisible
.
value
=
false
;
}
else
{
router
.
push
(
item
.
jumpUrl
);
// 假设这是你要解析和重定向的原始 URL
const
originalUrl
=
item
.
jumpUrl
;
// 解析 URL
const
url
=
new
URL
(
originalUrl
,
window
.
location
.
origin
);
const
params
=
new
URLSearchParams
(
url
.
search
);
// 提取查询参数
const
queryParams
=
{};
for
(
const
[
key
,
value
]
of
params
.
entries
())
{
queryParams
[
key
]
=
value
;
}
// 使用 router.push 导航到相同的路径并传递 query 参数
router
.
push
({
path
:
url
.
pathname
,
query
:
queryParams
});
// router.push(encodeURIComponent(item.jumpUrl));
drawerVisible
.
value
=
false
;
}
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment