const webUrl = location.href.indexOf("/chat") > -1 ? "/chat/" : ""; const webHost = location.origin + webUrl const config = { StaticFileBaseUrl: webUrl + "/CimSDK/", //初始化后多长时间开 loadTime: 2000, //间隔多久回消息 retTime: 2000 }