mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +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
|
|
})
|
|
}
|