mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
7 lines
140 B
JavaScript
7 lines
140 B
JavaScript
export const withPrefix = (prefix, routes) => {
|
|
return routes.map(route => {
|
|
route.path = prefix + route.path
|
|
return route
|
|
})
|
|
}
|