detail.js 498 Bytes
import { connect } from "umi";
import QuotationAllprogressDetail from "@/mobile/quotation/detail.jsx";

function quotationDetail({ dispatch, app, content, location, sModelsId }) {
  const quotationProps = {
    app,
    content,
    dispatch,
    location, // 只传递需要的部分
    sModelsId,
  };
  return <QuotationAllprogressDetail {...quotationProps} />;
}

const mapStateToProps = ({ app, content }) => ({
  app,
  content,
});

export default connect(mapStateToProps)(quotationDetail);