diff --git a/src/routes/mobile/IndexMobile.js b/src/routes/mobile/IndexMobile.js index 2571da4..35a02d7 100644 --- a/src/routes/mobile/IndexMobile.js +++ b/src/routes/mobile/IndexMobile.js @@ -38,7 +38,8 @@ import * as commonFunc from '../../components/Common/commonFunc'; // import AppUtil from '../../utils/AppUtil'; import * as commonBusiness from "../../components/Common/commonBusiness"; import commonConfig from '@/utils/config'; - +import VConsole from 'vconsole'; +let vConsole; // eslint-disable-next-line prefer-destructuring const alert = Modal.alert; class IndexMobile extends React.Component { @@ -115,7 +116,12 @@ class IndexMobile extends React.Component { setTimeout(() => { this.backPressedOnce = false; }, 2000); } } else { + // window.history.back(-1); window.history.back(-1); + setTimeout(() => { + this.props.dispatch({ type: "app/refreshPage" }); + // history.push(location.pathname); + }, 100); } }); } @@ -299,6 +305,7 @@ class IndexMobile extends React.Component { const device = commonFunc.showLocalMessage(this.props, 'device', '设备'); const quotation = commonFunc.showLocalMessage(this.props, 'quotation', '报价下单'); const mine = commonFunc.showLocalMessage(this.props, 'mine', '我的'); + // vConsole = new VConsole(); return (