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:04:17 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bfa95e38466f73026afd26b52e59daedaad7c246
bfa95e38
1 parent
87cec5e6
fix 修复路由生成器地址栏
Hide 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 @
bfa95e3
...
...
@@ -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