Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-05-17 10:07:48 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e2b7566935e8ab9f6637bf0de2e8ae6fab1183f4
e2b75669
1 parent
bfa95e38
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/utils/generateRoute.js
src/utils/generateRoute.js
View file @
e2b7566
...
...
@@ -6,7 +6,7 @@ import routes from "../mock/routes"
// 根据后台返回的路径,生成页面的组件模版
function
loadView
(
component
)
{
return
()
=>
import
(
`
/@
/views/
${
component
}
.vue`
)
return
()
=>
import
(
`
..
/views/
${
component
}
.vue`
)
}
const
formatRoutesArr
=
[]
...
...
Please
register
or
login
to post a comment