如何修改finebi的网站icon(favicon.ico)?

如题,Finebi版本6.0,部署版本是服务器版,不是tomcat独立部署

---

2024年4月17日:

搞了两三天终于解决了,本问答作为记录贴

FineBI cstn 发布于 2024-4-17 10:54 (编辑于 2024-4-17 11:27)
1min目标场景问卷 立即参与
回答问题
悬赏:4 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
cstnLv2见习互助
发布于2024-4-17 11:01(编辑于 2024-4-17 11:27)

1 把favicon.ico上传到

$FINEBI_ROOT/webapps/webroot/

上传后的网站icon文件应该长这样:

$FINEBI_ROOT/webapps/webroot/favicon.ico

2 修改以下两个文件

- index.html

位于fine-cbb-11.0.jar的com/fr/web/controller/decision/entrance/resources/index.html

在html中<head></head>之间随便找个位置新增一行:

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />

- login.html

位于fine-cbb-11.0.jar的com/fr/web/controller/decision/entrance/resources/login.html

在html中<head></head>之间随便找个位置新增一行:

<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />

(注意和index.html相比,favicon.ico的相对路径href有轻微不同)

修改后的文件应该长这样:

------------------------------------------------------------------

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=${charset}">

<meta name="renderer"  content="webkit">

<meta http-equiv="X-UA-Compatible" content="IE=edge"/>

<title>${title}</title>

-----新增下面这行-----

<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />

<link rel="preload" href="${fineServletURL}/resources?path=/com/fr/web/ui/font/iconfont.woff" as="font" type="font/woff" crossorigin>

    <!--css文件-->

${styleTag}

</head>

------------------------------------------------------------------

  • 0关注人数
  • 160浏览人数
  • 最后回答于:2024-4-17 11:27
    请选择关闭问题的原因
    确定 取消
    返回顶部