The loading bar is enabled in nuxt.config.js as seen below, but it's not showing up between routes. I'm using Vuetify.
/*
** Customize the progress-bar color
*/
loading: {
color: '#333333'
},
I'm using the following way to switch routes:
<nuxt-link to="/auth/admin">Admin</nuxt-link>
When combined with headless platform such as CrafterCMS, Nuxt can provide a framework to build highly-performant web applications and SPAs. This article is an introductory review of NuxtJS, a powerful framework on top of Vue for building modern web applications.
Answer: Use the Vue. To get current route name from a URL in a Nuxt app that uses Vue Router you can use vue. js route objects like this. $route.name or this. $route.
same problem I have it
this is working for me
loading: { color: '#333333', throttle: 0 },
for more info Customize progress bar
Try this:
loading: {
color: 'blue',
height: '5px',
throttle: 0
}
But if you use
Npx nuxt-create {app name}
Then in nuxt.config on line 20, there is already a loading object remove that. Good luck.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With