A
A
Alexander2018-02-01 12:44:08
Vue.js
Alexander, 2018-02-01 12:44:08

How to add path alias in Nuxt.js?

At the moment, this folder structure is:
/pages/users/index.vue
/pages/users/_id.vue You
need to make 4 paths:
/users
/user/list
/user/map
/users/:id
You need the first 3 paths to refer to /pages/users/index.vue , but now only the first path refers to it, and the rest to /pages/users/_id.vue.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question