没有任何方法在 Safari 中显示 React 应用程序的图标

问题描述 投票:0回答:0

我在 index.html 中有以下内容

<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"/>
    <link rel="icon" href="%PUBLIC_URL%/favicon.ico"/>
    <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />

它们似乎都没有效果,出于某种原因它仍然显示反应默认图标。

如何修复?

在html中,它呈现为

<link rel="icon" href="/favicon.ico">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/logo192.png">
reactjs favicon
© www.soinside.com 2019 - 2024. All rights reserved.