问题: 页面跳转的按钮,即使设置了disabled={true} 任然每次都能实现跳转
<Link
to={`${url}/create`}
className="ml20"
>
<Button disabled={true} className="createBtn" icon={<PlusOutlined />}>
Create Database
</Button>
</Link>
解决方法:给它设置一个disabled的样式
<Link
to={`${url}/create`}
className={classNames('ml20', { disabled: noReadWritePermission })}
>
<Button className="createBtn" icon={<PlusOutlined />}>
Create Database
</Button>
</Link>
.disabled,
[disabled],
button[disabled],
input[disable