'+t+'
重新登录')}function handleVisibilityChange(){!document.hidden&&window.GLOBAL_PID&&window.setProjectIdCookie(window.GLOBAL_PID)}function getDevOpsIcon(){const e=window.location.origin+"/ms/platform/api/external/platform-logo/favicon.ico?t="+(new Date).getTime();var t=document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)}function getBrowserName(){document.title="蓝鲸DevOps平台",getPlatformTitle().then((e=>{e&&(document.title="en"===window.INIT_LOCALE?e.find((e=>"en"===e.language)).title:e.find((e=>"cn"===e.language)).title,window.vuexStore&&"function"==typeof window.vuexStore.commit&&window.vuexStore.commit("UPDATE_STATE_KEY_VALUE",{key:"navigatorTitle",value:document.title}))}))}window.setLsCacheItem=function(e,t){try{if(e&&"string"==typeof e){var n=CACHE_PREFIX+e;localStorage.setItem(n,JSON.stringify(t))}}catch(e){console.warn(e)}},window.getLsCacheItem=function(e){if(e&&"string"==typeof e){var t=CACHE_PREFIX+e,n=localStorage.getItem(t);try{return JSON.parse(n)}catch(e){return null}}},getDevOpsIcon(),getSsoStatus().then((e=>handleSsoStatus(e))).then(getTenantInfo).then(getTenantToken).then(handleAllServices).then((()=>{setTenantId(matchPathProjectId()).then(getData).then(getProService).then(init)})).catch((function(e){console.log(e),printError(e.status)})),document.addEventListener("visibilitychange",handleVisibilityChange,!1),window.onbeforeunload=function(){document.removeEventListener("visibilitychange",handleVisibilityChange,!1)}