index.js 453 Bytes
import { connect } from "umi";
import QuotationAllprogress from "@/mobile/Ai/newAi";

function AI({ dispatch, app, content, location, sModelsId,sProductClassifyId }) {
  const aiProps = {
    app,
    content,
    dispatch,
    location, // 只传递需要的部分
    sModelsId,
  };
  return <QuotationAllprogress {...aiProps} />;
}

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

export default connect(mapStateToProps)(AI);