Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nuxt loading bar not showing between routes

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>
like image 515
Isak Avatar asked Dec 28 '18 19:12

Isak


People also ask

Is Nuxt good for spa?

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.

How do I get the current route name in Nuxt?

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.


2 Answers

same problem I have it

this is working for me

loading: { color: '#333333', throttle: 0 },

for more info Customize progress bar

like image 150
bhavinjr Avatar answered Oct 30 '22 16:10

bhavinjr


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.

like image 22
Mark Nielsen Avatar answered Oct 30 '22 15:10

Mark Nielsen