修改默认跳转
This commit is contained in:
parent
bd091a5895
commit
a7a07af414
|
@ -495,7 +495,7 @@ export default function PostMachineReview() {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
//当前tab
|
//当前tab
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const pathname = location.pathname.split("/")[2] || "onlySelfCanSee";
|
const pathname = location.pathname.split("/")[2] || "operatorReviewing";
|
||||||
const [current, setCurrent] = useState(pathname);
|
const [current, setCurrent] = useState(pathname);
|
||||||
//tab名称
|
//tab名称
|
||||||
const items = [
|
const items = [
|
||||||
|
|
Loading…
Reference in New Issue