/** * 以下是4.4stable的代码 * **/ // let _myAppsPateName = window.document.location.pathname; // let _myAppsContextPath = _myAppsPateName.substring(1,_myAppsPateName.substr(1).indexOf('/')+1); // if(_myAppsContextPath == "/"){ // _myAppsContextPath = "/obpm"; // }else{ // _myAppsContextPath = ".."; // } // let _myAppsInx = _myAppsPateName.substr(1).indexOf("/"); // let _myAppsObpmFilePath = _myAppsPateName.substr(0, _myAppsInx + 1); //所有图片,文件打开用这个路径 // if(!_myAppsObpmFilePath) { // _myAppsObpmFilePath = "/obpm"; // }else { // let urlName = _myAppsPateName.substring(1,_myAppsPateName.substr(1).indexOf('/')+1); // _myAppsObpmFilePath = window.location.origin + "/" + urlName; // } // let obpmConfig = { // contextPath: _myAppsContextPath, // obpmFilePath: _myAppsObpmFilePath, // statiContextPath: "", // signonContextPath: "/signon", // } /** * 以下是5.0trunk的代码 * **/ let obpmConfig = { contextPath: "/obpm/api", obpmFilePath: "/obpm", statiContextPath: "/static", signonContextPath: "/signon", }