如何修改地址栏icon图标

PC端域名上方的小logo图标的可以通过网页head的link指定

要设置head的link需要添加一个html文件控制,html文件的名字为template.html,内容如下:

    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <link rel="SHORTCUT ICON" href="xxxx"/>
        </head>
    </html>

其中href就是指向的是图标地址,可以是http开头的路径,也可以是/开头的路径。

配置/开头的路径,如下:在pc/img下有一个icon.png图片,路径就可以配置为/entry/pcapp/pc/img/icon.png

具体的修改步骤如下:

1.打开企业门户的ide

2.在pc/config目录下创建template.html文件

3.修改link中href的地址

4.正式发布企业门户,logo就会替换为自己配置的图标

results matching ""

    No results matching ""

    results matching ""

      No results matching ""