From e3716ee33bd4c447fa44f8b38cc83ecbf9fa0005 Mon Sep 17 00:00:00 2001 From: Fangzhou Li Date: Mon, 22 May 2017 20:07:15 +0800 Subject: [PATCH] fix example --- en/data.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/data.md b/en/data.md index 8999e681..0bee1de1 100644 --- a/en/data.md +++ b/en/data.md @@ -122,7 +122,7 @@ export default context => { router.onReady(() => { const matchedComponents = router.getMatchedComponents() if (!matchedComponents.length) { - reject({ code: 404 }) + return reject({ code: 404 }) } // call `asyncData()` on all matched route components