修改CtCustomSiteConfig.xconf
<!--新主页,调价之后会自动跳转到新主页-->
<Property name="wt.homepage.jsp" overridable="true"
targetFile="codebase/wt.properties"
value="$(wt.server.codebase)/netmarkets/jsp/ext/mainPage/index.html#/"/>
其中jsp/ext/mainPage是前端地址,mainPage是前端打包后的文件
在windchill主页中添加图标
修改windchill-all.js
D:\ptc\Windchill_12.0\Windchill\codebase\netmarkets\javascript\util\windchill-all.js
//搜索
var homePageIconBox=new Ext.BoxComponent({id:"homePageIconID",cls:"home_icon_header home_icon",listeners:{render:function()
//在这下一行中添加
//并在breadcrumbPanel中按照homePageIconBox的方式添加
var homePageIconBox2=new Ext.BoxComponent({id:"homePageIconID2",style:"cursor: pointer;border-style: none;background-position: 0px 2px 2px 2px;background-image: url(/Windchill/netmarkets/images/mainPage.png);width: 16px; height: 16px;",listeners:{render:function(){var homePageTooltip2=new Ext.ToolTip({id:"homePageTooltip2",target:"homePageIconID2",html:"<font>新主页</font>"});this.mon(this.getEl(),"click",function(){window.open("/Windchill/netmarkets/jsp/ext/mainPage/index.html#/")})}}});
图标的选择
可以在阿里矢量图 官网中找图标,下载的时候注意下载16像素的