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
a0b1ca29
Commit
a0b1ca29
authored
Sep 25, 2024
by
tyyin lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: 基础路由路径调整
parent
0a7890b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
utils.ts
src/router/utils.ts
+4
-2
No files found.
src/router/utils.ts
View file @
a0b1ca29
...
...
@@ -13,11 +13,13 @@ export interface MenuOption {
}
export
function
getHistoryMode
(
modeString
:
ViteEnv
[
'VITE_ROUTER_MODE'
]):
RouterHistory
{
const
PUBLIC_PATH
=
import
.
meta
.
env
.
VITE_PUBLIC_PATH
if
(
modeString
===
'h5'
)
{
return
createWebHistory
()
return
createWebHistory
(
PUBLIC_PATH
)
}
return
createWebHashHistory
()
return
createWebHashHistory
(
PUBLIC_PATH
)
}
function
menuSort
(
routes
:
RouteRecordRaw
[])
{
...
...
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