GetIdByPath.js 426 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
import React from 'react';
import { getOneStopConfig } from '@/webPublic/zyd_public/utils/utils';
import List from './index';

export default class GetIdByPath extends React.Component{
  constructor(props) {
    super(props);
  }

  render() {
    const { location } = this.props;
    const { pathname } = location;
    return (
      <List objId={getOneStopConfig(pathname)}
15
            {...this.props}
16 17 18 19
      />
    );
  }
}