|
|
|
@ -282,17 +282,15 @@ export function TPMIndexHOC(WrappedComponent) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
//获取当前定制信息
|
|
|
|
|
//获取当前定制信息
|
|
|
|
|
getAppdata=()=>{
|
|
|
|
|
let url = "/setting.json";
|
|
|
|
|
axios.get(url,{
|
|
|
|
|
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
console.log("开始请求/setting.json");
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
console.log("app.js开始请求/setting.json");
|
|
|
|
|
console.log("获取当前定制信息");
|
|
|
|
|
console.log(response);
|
|
|
|
|
if(response!=undefined){
|
|
|
|
|
if(response.status===200){
|
|
|
|
|
if(response){
|
|
|
|
|
if(response.data){
|
|
|
|
|
this.setState({
|
|
|
|
|
mygetHelmetapi:response.data.setting
|
|
|
|
|
});
|
|
|
|
@ -318,6 +316,7 @@ export function TPMIndexHOC(WrappedComponent) {
|
|
|
|
|
}
|
|
|
|
|
document.head.appendChild(link);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
document.title = "EduCoder";
|
|
|
|
|
var link = document.createElement('link'),
|
|
|
|
@ -332,7 +331,6 @@ export function TPMIndexHOC(WrappedComponent) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error);
|
|
|
|
|
document.title = "EduCoder";
|
|
|
|
|
var link = document.createElement('link'),
|
|
|
|
|
oldLink = document.getElementById('dynamic-favicon');
|
|
|
|
|