perf: 服务状态和403 区分

feature/hotel-cruise
Lei OT 2 years ago
parent d0d0cb897f
commit b4f869453a

@ -31,9 +31,11 @@ const ProtectedRoute = ({ auth }) => {
<div>
{/* '试着联系一下技术,所需权限: ' + auth.toString() */}
<Result
status="403"
title="403 权限不足"
status={auth_store.user.name === 'loading' ? '500' : '403'}
title={auth_store.user.name === 'loading' ? '无服务' : '403 权限不足'}
// title="403 "
subTitle={
auth_store.user.name !== 'loading' ? (
<>
<div style={{ width: 300, textAlign: 'left', margin: 'auto auto' }}>
<div>
@ -76,6 +78,7 @@ const ProtectedRoute = ({ auth }) => {
<Image alt="example" src={authExample} preview={false} />
</div>
</>
) : null
}
/>
</div>

Loading…
Cancel
Save