Skip to content

Commit 418b601

Browse files
authored
fix: reformat how slugs are defined (#30)
1 parent 8248fed commit 418b601

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adex/src/app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ function ComponentWrapper({ url = '' }) {
4848
Router,
4949
null,
5050
routes.map(d => {
51+
const routePath = d.routePath.replace(/\/\*(\w+)/, '/:$1*')
52+
5153
return h(Route, {
52-
path: normalizeURLPath(d.routePath),
54+
path: normalizeURLPath(routePath),
5355
component: lazy(d.module),
5456
})
5557
})

0 commit comments

Comments
 (0)