mirror of https://github.com/alibaba/ice.git
fix: optimize code
This commit is contained in:
parent
ad7b817dc0
commit
6b1abc701c
|
@ -128,7 +128,7 @@ export function defineRoutes(
|
||||||
? parentRoutes[parentRoutes.length - 1]
|
? parentRoutes[parentRoutes.length - 1]
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
const id = createRouteId(file, path, parentRoute?.id || parentRoute?.path, options.index);
|
const id = createRouteId(file, path, parentRoute?.id, options.index);
|
||||||
const route: ConfigRoute = {
|
const route: ConfigRoute = {
|
||||||
path,
|
path,
|
||||||
index: options.index ? true : undefined,
|
index: options.index ? true : undefined,
|
||||||
|
|
Loading…
Reference in New Issue