mainfest的图片报错(img/icons/andriod-chrome-192x192.png)Download error or resource isn't a vaild image

配置vue-cli 的logo 标签(即: 标签图标)

1. 在入口文件index.html中加入

<link rel="shortcut icon" type="image/x-icon" href="./img/logo.png">
 
2. public文件夹下添加 manifest.json文件
  
{
     "icons": [
    {
      "src": "./img/logo.png",
      "type": "image/png"
    }
  ]
}
 

 

posted @ 2022-09-02 10:02  搬砖的苦行僧  阅读(863)  评论(0编辑  收藏  举报