Skip to content

Commit 6730768

Browse files
committed
avoid warning aliased child routes with name (fix #1119)
1 parent 3ea9558 commit 6730768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/create-route-map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function addRouteRecord (
107107
if (name) {
108108
if (!nameMap[name]) {
109109
nameMap[name] = record
110-
} else if (process.env.NODE_ENV !== 'production') {
110+
} else if (process.env.NODE_ENV !== 'production' && !matchAs) {
111111
warn(
112112
false,
113113
`Duplicate named routes definition: ` +

0 commit comments

Comments
 (0)