fix: polish playground routing and bundle splits
This commit is contained in:
@@ -76,7 +76,6 @@ function Playground() {
|
||||
if (cached) {
|
||||
try {
|
||||
setProviderStatus(JSON.parse(cached) as AIProviderStatus)
|
||||
return
|
||||
} catch {
|
||||
sessionStorage.removeItem(PLAYGROUND_PROVIDER_STATUS_STORAGE_KEY)
|
||||
}
|
||||
@@ -207,22 +206,24 @@ function Playground() {
|
||||
key: 'help',
|
||||
label: '测试说明',
|
||||
children: (
|
||||
<Alert
|
||||
type="info"
|
||||
showIcon
|
||||
className="playground-note"
|
||||
message="用于验证 AI Provider 是否可用,以及 backend -> aiprovider 链路是否通畅。"
|
||||
description={(
|
||||
<span>
|
||||
当前链路:
|
||||
<Text code>frontend /playground</Text>
|
||||
{' -> '}
|
||||
<Text code>backend /api/v1/ai/*</Text>
|
||||
{' -> '}
|
||||
<Text code>aiprovider /v1/*</Text>
|
||||
</span>
|
||||
)}
|
||||
/>
|
||||
<div className="playground-help__content">
|
||||
<Alert
|
||||
type="info"
|
||||
showIcon
|
||||
className="playground-note"
|
||||
message="用于验证 AI Provider 是否可用,以及 backend -> aiprovider 链路是否通畅。"
|
||||
description={(
|
||||
<span>
|
||||
当前链路:
|
||||
<Text code>frontend /playground</Text>
|
||||
{' -> '}
|
||||
<Text code>backend /api/v1/ai/*</Text>
|
||||
{' -> '}
|
||||
<Text code>aiprovider /v1/*</Text>
|
||||
</span>
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
),
|
||||
},
|
||||
]}
|
||||
|
||||
Reference in New Issue
Block a user