说明:本文所基于的项目目录结构如下 方法一 直接在 public --> index.html 中通过 link 标签添加 <head> <!-- 自定义的 meta 、 title 内容省略了 --> <link rel="shortcut icon"