Want to take a look at our new docs? Our new docs are now in beta. Have fun!

API: loading 属性

loading 属性

loading 属性为您提供了禁用特定页面上的默认加载进度条的选项。

  • 类型: Boolean (默认: true)

默认情况下,Nuxt.js 使用自己的组件来显示路由跳转之间的进度条。

您可以通过Configuration 的加载选项全局禁用或自定义它,但也可以通过将 loading 属性设置为 false 来禁用特定页面:

<template>
  <h1>My page</h1>
</template>

<script>
  export default {
    loading: false
  }
</script>

您可以找到官方示例来使用此属性 点击这里.

Contribution for this page is now closed. If you would like to contribute please check out our new docs are now in beta. Have fun!

Platinum Sponsors

StoryblokMoovweb Support Us