chromesetting
杨树明 5 years ago
parent 0d1a018b46
commit 8c3f915bb0

@ -349,6 +349,7 @@ class App extends Component {
}); });
} }
componentDidMount() { componentDidMount() {
document.title = "loading...";
this.disableVideoContextMenu(); this.disableVideoContextMenu();
// force an update if the URL changes // force an update if the URL changes
history.listen(() => { history.listen(() => {

@ -386,6 +386,7 @@ class LoginDialog extends Component {
axios.interceptors.response.use((response) => { axios.interceptors.response.use((response) => {
if(response!=undefined) if(response!=undefined)
if (response&&response.data.status === 401) { if (response&&response.data.status === 401) {
document.title = "提示";
this.setState({ this.setState({
isRender: true isRender: true
}) })

@ -19,6 +19,7 @@ class AccountProfile extends Component {
axios.interceptors.response.use((response) => { axios.interceptors.response.use((response) => {
if (response != undefined) if (response != undefined)
if (response && response.data.status === 402) { if (response && response.data.status === 402) {
document.title = "提示";
this.setState({ this.setState({
AccountProfiletype: true AccountProfiletype: true
}) })

@ -10,9 +10,11 @@ class Accountnewprofile extends Component {
} }
} }
componentDidMount() { componentDidMount() {
axios.interceptors.response.use((response) => { axios.interceptors.response.use((response) => {
if(response!=undefined) if(response!=undefined)
if (response&&response.data.status === 411) { if (response&&response.data.status === 411) {
document.title = "提示";
this.setState({ this.setState({
newAccountProfiletype:true, newAccountProfiletype:true,
content:response.data.message, content:response.data.message,

Loading…
Cancel
Save