forked from Gitlink/forgeplus-react
This commit is contained in:
parent
ac5cf6bde7
commit
f511e85d38
|
@ -481,7 +481,7 @@ class App extends Component {
|
||||||
this.setState({
|
this.setState({
|
||||||
mygetHelmetapi: undefined
|
mygetHelmetapi: undefined
|
||||||
});
|
});
|
||||||
document.title = "Forge";
|
// document.title = "Forge";
|
||||||
var link = document.createElement('link'),
|
var link = document.createElement('link'),
|
||||||
oldLink = document.getElementById('dynamic-favicon');
|
oldLink = document.getElementById('dynamic-favicon');
|
||||||
link.id = 'dynamic-favicon';
|
link.id = 'dynamic-favicon';
|
||||||
|
|
|
@ -322,8 +322,7 @@ export function initAxiosInterceptors(props) {
|
||||||
// console.log("401401401")
|
// console.log("401401401")
|
||||||
// }
|
// }
|
||||||
if (response.data.status === 403||response.data.status === "403") {
|
if (response.data.status === 403||response.data.status === "403") {
|
||||||
|
locationurl('/403');
|
||||||
locationurl('/403');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (response.data.status === 404) {
|
if (response.data.status === 404) {
|
||||||
|
|
|
@ -691,7 +691,7 @@ submittojoinclass=(value)=>{
|
||||||
this.setState({
|
this.setState({
|
||||||
mygetHelmetapi2: undefined
|
mygetHelmetapi2: undefined
|
||||||
});
|
});
|
||||||
document.title = "Forge";
|
// document.title = "Forge";
|
||||||
var link = document.createElement('link'),
|
var link = document.createElement('link'),
|
||||||
oldLink = document.getElementById('dynamic-favicon');
|
oldLink = document.getElementById('dynamic-favicon');
|
||||||
link.id = 'dynamic-favicon';
|
link.id = 'dynamic-favicon';
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
|
||||||
import PropTypes from 'prop-types';
|
// import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import NewHeader from './NewHeader'
|
import NewHeader from './NewHeader'
|
||||||
import NewFooter from './NewFooter'
|
import NewFooter from './NewFooter'
|
||||||
import SiderBar from './SiderBar'
|
import SiderBar from './SiderBar'
|
||||||
import { getUrl, downloadFile } from 'educoder'
|
import { downloadFile } from 'educoder'
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { Spin } from 'antd';
|
import { Spin } from 'antd';
|
||||||
import './TPMIndex.css';
|
import './TPMIndex.css';
|
||||||
import LoginDialog from '../login/LoginDialog';
|
import LoginDialog from '../login/LoginDialog';
|
||||||
import AccountProfile from '../user/AccountProfile';
|
import AccountProfile from '../user/AccountProfile';
|
||||||
import AccountPhoneemail from '../user/AccountPhoneemail';
|
import AccountPhoneemail from '../user/AccountPhoneemail';
|
||||||
import Trialapplication from "../login/Trialapplication";
|
// import Trialapplication from "../login/Trialapplication";
|
||||||
// import "antd/dist/antd.css";
|
// import "antd/dist/antd.css";
|
||||||
// import '../../css/educoder/edu-common.css'
|
// import '../../css/educoder/edu-common.css'
|
||||||
// import '../../css/educoder/edu-all.css'
|
// import '../../css/educoder/edu-all.css'
|
||||||
|
@ -128,24 +128,24 @@ export function TPMIndexHOC(WrappedComponent) {
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
// console.log("TPMIndexHOC========");
|
// console.log("TPMIndexHOC========");
|
||||||
// console.log(this.props);
|
// console.log("match",this.props);
|
||||||
window.addEventListener('keyup', this.keyupListener)
|
window.addEventListener('keyup', this.keyupListener);
|
||||||
|
|
||||||
if(this.props.match.path==="/"){
|
if(this.props.match.path==="/"){
|
||||||
// document.title="创新源于实践";
|
document.title="Forge";
|
||||||
}else if(this.props.match.path==="/403"){
|
}else if(this.props.match.path==="/403"){
|
||||||
document.title="你没有权限访问";
|
document.title="你没有权限访问";
|
||||||
}else if(this.props.match.path==="/nopage"){
|
}else if(this.props.match.path==="/nopage"){
|
||||||
document.title="没有找到该页面";
|
document.title="没有找到该页面";
|
||||||
}else if(this.props.match.path==="/shixuns"){
|
}else if(this.props.match.path==="/shixuns"){
|
||||||
document.title="实训项目";
|
document.title="实训项目";
|
||||||
}else if(this.props.match.path==="/paths"){
|
}else if(this.props.match.path==="/paths"){
|
||||||
document.title="实践课程";
|
document.title="实践课程";
|
||||||
}else if(this.props.match.path==="/courses"){
|
}else if(this.props.match.path==="/courses"){
|
||||||
document.title="翻转课堂";
|
document.title="翻转课堂";
|
||||||
}else if(this.props.match.path==="/projects"){
|
}else if(this.props.match.path==="/projects"){
|
||||||
document.title="开源项目";
|
document.title="开源项目";
|
||||||
}
|
}
|
||||||
|
|
||||||
$.ajaxSetup({
|
$.ajaxSetup({
|
||||||
cache: true
|
cache: true
|
||||||
|
@ -264,7 +264,7 @@ export function TPMIndexHOC(WrappedComponent) {
|
||||||
this.setState({
|
this.setState({
|
||||||
mygetHelmetapi: undefined
|
mygetHelmetapi: undefined
|
||||||
});
|
});
|
||||||
document.title = "Forge";
|
// document.title = "Forge";
|
||||||
var link = document.createElement('link'),
|
var link = document.createElement('link'),
|
||||||
oldLink = document.getElementById('dynamic-favicon');
|
oldLink = document.getElementById('dynamic-favicon');
|
||||||
link.id = 'dynamic-favicon';
|
link.id = 'dynamic-favicon';
|
||||||
|
|
Loading…
Reference in New Issue