chore: add comment

pull/366/head
CHOYSEN 4 years ago
parent a6a99888e6
commit 1da7a73f89

@ -117,6 +117,7 @@ function newRouter(): Router {
isInitialPageLoad = false
const page = import(/*@vite-ignore*/ pageFilePath)
// fallback to base url when visit a non-exist page at first
page.catch(() => (location.href = import.meta.env.BASE_URL))
return page
}

Loading…
Cancel
Save