Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
digitalPerson-fe
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
digitalPerson
digitalPerson-fe
Commits
8de3cea8
Commit
8de3cea8
authored
Sep 30, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 更新网页标题
parent
84be0601
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
.env.development
.env.development
+1
-1
.env.production
.env.production
+1
-1
guards.ts
src/router/guards.ts
+2
-8
No files found.
.env.development
View file @
8de3cea8
VITE_APP_ENV = 'DEV'
VITE_APP_NAME = '
DIGITAL_PERSON_FE
'
VITE_APP_NAME = '
萃想智能雲創
'
VITE_APP_THEME_COLOR = '#2468f2'
VITE_PORT = 8848
VITE_PUBLIC_PATH = /fe
...
...
.env.production
View file @
8de3cea8
VITE_APP_ENV = 'PROD'
VITE_APP_NAME = '
DIGITAL_PERSON_FE
'
VITE_APP_NAME = '
萃想智能雲創
'
VITE_APP_THEME_COLOR = '#2468f2'
VITE_PORT = 8848
VITE_PUBLIC_PATH = /fe
...
...
src/router/guards.ts
View file @
8de3cea8
...
...
@@ -29,14 +29,8 @@ export function createRouterGuards(router: Router) {
next
()
})
router
.
afterEach
((
to
)
=>
{
if
(
to
.
meta
.
hiddenTitle
)
{
document
.
title
=
''
}
else
if
(
to
.
meta
.
title
)
{
document
.
title
=
`
${
import
.
meta
.
env
.
VITE_APP_NAME
}
-
${
to
.
meta
.
title
}
`
}
else
{
document
.
title
=
import
.
meta
.
env
.
VITE_APP_NAME
}
router
.
afterEach
(()
=>
{
document
.
title
=
import
.
meta
.
env
.
VITE_APP_NAME
window
.
$loadingBar
.
finish
()
})
...
...
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