Skip to content

Commit

Permalink
fix($core): cannot fallback to default NotFound layout correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Sep 27, 2018
1 parent 8edc6de commit 0b89d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/core/lib/prepare/loadTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ module.exports = async function loadTheme (theme, sourceDir, vuepressDir) {

// use default 404 component.
if (!layoutComponentMap.NotFound || !fs.existsSync(layoutComponentMap.NotFound.path)) {
layoutComponentMap['404'] = {
layoutComponentMap['NotFound'] = {
filename: 'Layout.vue',
componentName: 'NotFound',
path: path.resolve(__dirname, '../app/components/NotFound.vue'),
Expand Down

0 comments on commit 0b89d9c

Please sign in to comment.