diff --git a/src/router/index.js b/src/router/index.js index 1a1f861..3250f84 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -16,6 +16,8 @@ const findRoute = (routes, pathname) => { const renderRoute = () => { const targetRoute = findRoute(pageRoutes, location.pathname); + if (!targetRoute) return; + const params = getParams(targetRoute); const queryParams = getQueryParams(location.search);