custom/五院杭州中心

This commit is contained in:
lys 2025-05-22 09:46:29 +08:00
parent 25c74df6f2
commit 2aaed235b0
1 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,7 @@
* Date: 2023/9/13
*/
import React, { Component } from "react";
import { WeaLocaleProvider, WeaReqTop } from "ecCom";
import { WeaLocaleProvider, WeaReqTop, WeaTools } from "ecCom";
import { Button, Dropdown, Menu, message, Modal } from "antd";
import { inject, observer } from "mobx-react";
import Layout from "./layout";
@ -50,7 +50,9 @@ class Index extends Component {
init = () => {
const { routeParams: { salaryAcctRecordId } } = this.props;
getApprovalInfoByRecordId({ salaryAcctRecordId }).then(({ status, data: approvalInfo }) => {
if (status) this.setState({ approvalInfo });
if (status) this.setState({
approvalInfo, selectedKey: WeaTools.getUrlParams().tabkey || this.state.selectedKey
});
});
};
handleMenuClick = ({ key }) => {