Skip to content

Commit

Permalink
fix(routes): validate dynamic route to pass through 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow81627 committed Dec 8, 2019
1 parent 1951948 commit b7de0e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/_slug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,8 @@ export default {
}
});
},
validate({ params, query, store }) {
return params.slug !== '404.html';
},
};
</script>

0 comments on commit b7de0e9

Please sign in to comment.