提交 e81ef846 authored 作者: 钟是志's avatar 钟是志

把中技改为技工

上级 b02c36ce
......@@ -21,6 +21,7 @@ const idsConfig = [
export default function PrintQnmz(props) {
const componentRef = useRef();
const [showPrint, setShowPrint] = useState(false);
console.log(window.history);
useEffect(() => {
document.title = "新手报到单打印";
setTimeout(() => {
......@@ -36,9 +37,9 @@ export default function PrintQnmz(props) {
/>
}
{
showPrint &&
showPrint && window.history.length > 1 &&
<Button type={"danger"} onClick={() => {
window.history.goBack()
window.history.go(-1);
}}>返回</Button>
}
</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论