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
9cb3d0dc
authored
2026-03-16 13:21:02 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改页面标题名称
1 parent
c0db4eb4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletions
src/router/modules/dataBasic.ts
src/views/data_basic/addUser.vue
src/router/modules/dataBasic.ts
View file @
9cb3d0d
...
...
@@ -55,7 +55,9 @@ const routes: RouteRecordRaw[] = [
activeMenu
:
'/data-basic/user-manage'
},
beforeEnter
:
(
to
)
=>
{
if
(
to
.
query
.
userName
)
{
if
(
to
.
query
.
isDetail
)
{
to
.
meta
.
title
=
`详情-
${
to
.
query
.
userName
}
`
;
}
else
if
(
to
.
query
.
isEdit
)
{
to
.
meta
.
title
=
`编辑-
${
to
.
query
.
userName
}
`
;
}
}
...
...
src/views/data_basic/addUser.vue
View file @
9cb3d0d
...
...
@@ -398,6 +398,20 @@ onBeforeMount(() => {
})
})
onActivated
(()
=>
{
let
tab
:
any
=
userStore
.
tabbar
.
find
((
tab
:
any
)
=>
tab
.
fullPath
===
route
.
fullPath
);
if
(
tab
)
{
if
(
isDetail
.
value
)
{
tab
.
meta
.
title
=
`详情-
${
route
.
query
.
userName
}
`
;
}
else
if
(
isEdit
.
value
)
{
tab
.
meta
.
title
=
`编辑-
${
route
.
query
.
userName
}
`
;
}
else
{
tab
.
meta
.
title
=
`新增用户`
;
}
document
.
title
=
tab
.
meta
.
title
;
};
})
onMounted
(()
=>
{
})
...
...
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