Skip to content

Commit 5950fb3

Browse files
committed
respect deeper routes of the same path (fix #908)
1 parent 96971b4 commit 5950fb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/create-route-map.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ function addRouteRecord (
6969
}
7070
}
7171

72-
pathMap[record.path] = record
72+
if (!pathMap[record.path]) {
73+
pathMap[record.path] = record
74+
}
7375
if (name) {
7476
if (!nameMap[name]) {
7577
nameMap[name] = record

0 commit comments

Comments
 (0)