ico文件要放在static下。 在头部标签中引入: <link rel="shortcut icon" type="image/x-icon" href="/static/web-avatar.ico">