src/views/printTemplate/index.jsx
@@ -2,6 +2,23 @@ import './index.scss' class PrintTemplate extends Component { state = { ID: null } componentDidMount () { let _param = window.atob(this.props.match.params.param) let _params = {} _param.split('&').forEach(cell => { let _cell = cell.split('=') _params[_cell[0]] = _cell[1] }) this.setState({ ID: _params.ID }) } render () { return ( <div className="print-template">