1.路由跳转
path:目的路由
state:携带的参数
goToPermissionPage = (positionId) => {
let path = {
pathname: '/system/department/permission',
state: {
positionId: positionId,
},
};
router.push(path);
};
2.路由返回
router.goBack();