【问题标题】:`loadingIndicator` nuxt.config.js property not working for Universal mode? Is it expected?`loadingIndicator` nuxt.config.js 属性不适用于通用模式?是预期的吗?
【发布时间】:2020-09-18 22:04:12
【问题描述】:

默认情况下,nuxt 提供了两个 nuxt.config.js 属性 loading 和 loadingIndicator。 loading 在我的 nuxt 项目中工作得非常好,但我想第一次在页面加载时使用 loadingIndicator,但它似乎不起作用。 p>

https://nuxtjs.org/api/configuration-loading-indicator/

但是,根据 nuxt 文档,它确实提到此选项适用于 SPA 模式,但我想知道这是否适用于通用模式?

【问题讨论】:

    标签: vue.js nuxt.js loading


    【解决方案1】:

    将通用模式更改为水疗模式

    export default { mode: "spa", loadingIndicator: { name: "circle", color:"#f39151", background: "#033641" } };
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-11
      • 1970-01-01
      • 2016-11-25
      • 2016-06-24
      • 1970-01-01
      • 1970-01-01
      • 2010-10-25
      • 2013-10-04
      相关资源
      最近更新 更多