dev_auth
杨树林 5 years ago
parent 5a9b164521
commit 1ac84425e2

@ -95,6 +95,9 @@ export function initAxiosInterceptors(props) {
} }
// if (requestMap[config.url] === true) { // 避免重复的请求 导致页面f5刷新 也会被阻止 // if (requestMap[config.url] === true) { // 避免重复的请求 导致页面f5刷新 也会被阻止
// console.log(config);
// console.log(JSON.parse(config));
// console.log(config.url);
// console.log("被阻止了是重复请求================================="); // console.log("被阻止了是重复请求=================================");
// return false; // return false;
// } // }

@ -60,7 +60,7 @@ class MemoTechShare extends Component {
(oldParsed.order && newParsed.order && oldParsed.order != newParsed.order)) { (oldParsed.order && newParsed.order && oldParsed.order != newParsed.order)) {
this.props.fetchMemos(); this.props.fetchMemos();
} }
console.log('componentWillReceiveProps...') // console.log('componentWillReceiveProps...')
} }
} }

@ -28,6 +28,7 @@ import educodernet from '../../../src/images/login/educodernet.png';
import LoginRegisterComponent from '../user/LoginRegisterComponent'; import LoginRegisterComponent from '../user/LoginRegisterComponent';
import FindPasswordComponent from '../user/FindPasswordComponent'; import FindPasswordComponent from '../user/FindPasswordComponent';
import passopen from "../../images/login/passopen.png"; import passopen from "../../images/login/passopen.png";
import {TPMIndexHOC} from "../tpm/TPMIndexHOC";
//educoder登入页面 //educoder登入页面
var sectionStyle = { var sectionStyle = {
"height": "100%", "height": "100%",
@ -109,7 +110,8 @@ class EducoderLogin extends Component {
} }
componentDidMount() { componentDidMount() {
console.log("EducoderLogin");
console.log(this.props);
} }
Setlogins=(i)=>{ Setlogins=(i)=>{
@ -206,8 +208,7 @@ class EducoderLogin extends Component {
} }
} }
export default SnackbarHOC() (TPMIndexHOC ( EducoderLogin ));
export default EducoderLogin;
// showbool === 2 ? // showbool === 2 ?
// <div style={{ // <div style={{
// display: "flex", // display: "flex",

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

Loading…
Cancel
Save