diff --git a/src/routes/mobile/IndexMobile.js b/src/routes/mobile/IndexMobile.js index 769fdb6..05ad57b 100644 --- a/src/routes/mobile/IndexMobile.js +++ b/src/routes/mobile/IndexMobile.js @@ -37,6 +37,7 @@ import QuotationDetail from "./quotation/detail"; import * as commonFunc from '../../components/Common/commonFunc'; // import AppUtil from '../../utils/AppUtil'; import * as commonBusiness from "../../components/Common/commonBusiness"; +import commonConfig from '@/utils/config'; // eslint-disable-next-line prefer-destructuring const alert = Modal.alert; @@ -359,13 +360,15 @@ class IndexMobile extends React.Component { badge={msgObj.iCount || 0} onPress={() => { const { app } = this.props; - const { token } = app; + const { token , userinfo} = app; + const {sBrandsId,sSubsidiaryId,sUserName} = userinfo || {} commonBusiness.clearSocketData({ token, value: {}, sModelsId: 100 }); this.setState({ selectedTab: "message", title: message, }); - history.push("/indexMobile"); + const url = `${commonConfig.server_host}/phone/phoneMsgFlowDingTalk/${sBrandsId}/${sSubsidiaryId}/${sUserName}` + history.push(url); }} data-seed="logId" >