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