perf: 服务状态和403 区分

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

@ -31,51 +31,54 @@ 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> <div style={{ width: 300, textAlign: 'left', margin: 'auto auto' }}>
<Text type={'danger'} strong> <div>
申请步骤: <Text type={'danger'} strong>
</Text> 申请步骤:
</div> </Text>
<ol style={{padding: '0 1rem'}}> </div>
<li> <ol style={{ padding: '0 1rem' }}>
复制以下信息 <li>
{/* <Button type="link" onClick={() => copyToClipboard(applyInfo)}> 复制以下信息
{/* <Button type="link" onClick={() => copyToClipboard(applyInfo)}>
复制 复制
</Button> */} </Button> */}
</li> </li>
{/* <li> */} {/* <li> */}
<pre className={'p-s1'} style={{ border: '1px solid rgba(0,0,0,.15)', borderRadius: 4 }}> <pre className={'p-s1'} style={{ border: '1px solid rgba(0,0,0,.15)', borderRadius: 4 }}>
{applyInfo} {applyInfo}
</pre> </pre>
{/* </li> */} {/* </li> */}
<li> <li>
<Button type="link" href={authApplyLink}> <Button type="link" href={authApplyLink}>
点击打开 &raquo;OA审批 &raquo; 点击打开 &raquo;OA审批 &raquo;
</Button> </Button>
<ul> <ul>
<li>输入申请信息(姓名等)</li> <li>输入申请信息(姓名等)</li>
<li> <li>
选择开通权限: <Text type={'warning'}>HT系统分析</Text> 选择开通权限: <Text type={'warning'}>HT系统分析</Text>
</li> </li>
<li> <li>
填入上述复制的信息到 <Text type={'warning'}>权限内容</Text> 填入上述复制的信息到 <Text type={'warning'}>权限内容</Text>
</li> </li>
</ul> </ul>
</li> </li>
</ol> </ol>
<div> <div>
<Text type={'secondary'} strong> <Text type={'secondary'} strong>
示例: 示例:
</Text> </Text>
</div>
<Image alt="example" src={authExample} preview={false} />
</div> </div>
<Image alt="example" src={authExample} preview={false} /> </>
</div> ) : null
</>
} }
/> />
</div> </div>

Loading…
Cancel
Save