【问题标题】:"apple-app-site-association" file not working in Vue.js with nuxt.js framework“apple-app-site-association”文件在带有 nuxt.js 框架的 Vue.js 中不起作用
【发布时间】:2021-11-22 14:15:04
【问题描述】:

我正在开发一个带有 nuxt.js 项目的 Vue.js,需要在我的网站中包含“apple-app-site-association”文件。

我做了以下步骤:

  1. 在公用文件夹中包含“apple-app-site-association”文件:“static”
  2. 我站点中的路由是:“https://my-site/apple-app-site-association”

当我导航到链接时,文件不会显示在浏览器中,而是下载文件

谁能帮帮我?

谢谢

【问题讨论】:

    标签: vue.js nuxt.js apple-app-site-associate


    【解决方案1】:

    我遇到了同样的问题,但我的前端是在 ReactJS 中。 因为,我发现该解决方案与 React 完全无关,而是与 Nginx 配置相关,我认为它也应该适用于您的 (VueJS NuxtJS) 实现。

    分享我的答案的链接- How to serve apple-app-site-association file on /apple-app-site-association page in ReactJS

    【讨论】:

      猜你喜欢
      • 2017-02-16
      • 2020-08-28
      • 2016-03-13
      • 1970-01-01
      • 2018-01-05
      • 2016-01-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多