diff --git a/src/components/drawer/index.jsx b/src/components/drawer/index.jsx index bb17ffb..bea0e32 100644 --- a/src/components/drawer/index.jsx +++ b/src/components/drawer/index.jsx @@ -311,7 +311,7 @@ export default class DrawerComponents extends React.Component { changeDetail = () => { const { detailType, params } = this.state; let type = detailType == 'chart' ? 'table' : 'chart'; - const showJob = params.fclass == '0' ? '1' : '0'; + const showJob = this.state.showJob ? '1' : '0'; this.setState({ detailType: type, }); diff --git a/src/pages/company.jsx b/src/pages/company.jsx index eafb603..6687a4e 100644 --- a/src/pages/company.jsx +++ b/src/pages/company.jsx @@ -130,7 +130,7 @@ export default function companyPage() { if (d.data.ftype == 0) { return 220; } else if (d.data.ftype == 1) { - return 160; + return 144; } else if (d.data.ftype == 2) { return 144; }