在目录结构在的 index.html, 写入如下代码: <link rel="shortcut icon" type="image/x-icon" href="./static/favicon.ico"> 效果图: