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
b130a8d4
authored
2025-06-25 17:52:26 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 解决嵌入页面选中问题
1 parent
6b0ea2c0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
src/layouts/components/Tabbar/index.vue
src/layouts/components/Tabbar/index.vue
View file @
b130a8d
...
...
@@ -4,6 +4,7 @@ import { useRouter } from "vue-router";
import
useUserStore
from
"@/store/modules/user"
;
import
useKeepAliveStore
from
'@/store/modules/keepAlive'
import
{
ElMessageBox
,
ElMessage
}
from
"element-plus"
;
import
{
isEqual
}
from
"lodash-es"
;
const
router
=
useRouter
();
const
route
=
useRoute
();
...
...
@@ -26,7 +27,7 @@ watch(
if
(
tab
.
fullPath
.
includes
(
jionPath
))
{
pathIndex
.
value
=
index
}
return
tab
.
fullPath
===
newRouter
.
fullPath
;
return
tab
.
fullPath
===
newRouter
.
fullPath
||
(
tab
.
path
==
newRouter
.
path
&&
isEqual
(
tab
.
query
,
newRouter
.
query
))
;
});
if
(
isExist
.
length
==
0
)
{
if
(
pathIndex
.
value
!=
-
1
&&
routerLength
>
3
)
{
...
...
@@ -45,11 +46,8 @@ watch(
}
}
list
.
map
(
item
=>
{
item
.
fullPath
=
item
.
fullPath
;
})
tabbarList
.
value
=
list
;
tabbarActive
.
value
=
newRouter
.
fullPath
;
tabbarActive
.
value
=
isExist
[
0
]?.
fullPath
||
newRouter
.
fullPath
;
userStore
.
setTabbar
(
tabbarList
.
value
);
userStore
.
setActiveTabbar
(
combPath
,
newRouter
.
fullPath
);
},
...
...
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