Skip to content
Discussion options

You must be logged in to vote

I think you can do this to achieve the effect

1.✔️ Step1: You should create a new folder under ./vitepress/theme and create a Layout.vue (In the Layout.vue you can define the error page you want)

2.✔️ Step2: You should import Layout.vue in theme/index.ts (In the documents, Like this, So import the Layout.vue)

3.✔️ Step3: Run the start command, and you can see

I hope my answer can help you~ 🔥

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bd-dxg
Comment options

@huccct
Comment options

Answer selected by bd-dxg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants