perf: 服务状态和403 区分

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

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

Loading…
Cancel
Save