From 4e009846cf5b1cce16a6a62175a41a4f184890da Mon Sep 17 00:00:00 2001 From: Fangzhou Li Date: Mon, 22 May 2017 19:35:10 +0800 Subject: [PATCH] fix example --- en/routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/routing.md b/en/routing.md index 2ecfb840..44f4f24c 100644 --- a/en/routing.md +++ b/en/routing.md @@ -67,7 +67,7 @@ export default context => { const matchedComponents = router.getMatchedComponents() // no matched routes, reject with 404 if (!matchedComponents.length) { - reject({ code: 404 }) + return reject({ code: 404 }) } // the Promise should resolve to the app instance so it can be rendered