fix: update default frontend hardcoded route links (#5016)

This commit is contained in:
yyhhyyyyyy 2026-05-22 10:36:50 +08:00 committed by GitHub
parent ae6a03364d
commit e13d673454
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View File

@ -689,7 +689,7 @@ export function useChannelsColumns(): ColumnDef<Channel>[] {
onClick={(e) => {
e.stopPropagation()
if (!deploymentId) return
const targetUrl = `/console/deployment?deployment_id=${deploymentId}`
const targetUrl = `/models/deployments?dFilter=${encodeURIComponent(String(deploymentId))}`
window.open(targetUrl, '_blank', 'noopener')
}}
/>

View File

@ -759,7 +759,9 @@ function FailureStatusContent({
variant='outline'
size='sm'
className='h-7 w-fit px-2 text-xs'
onClick={() => window.open('/console/setting?tab=ratio', '_blank')}
onClick={() =>
window.open('/system-settings/billing/model-pricing', '_blank')
}
>
<Settings className='mr-1 h-3 w-3 shrink-0' />
{t('Go to Settings')}

View File

@ -57,7 +57,7 @@ export function MessageError({ message, className = '' }: MessageErrorProps) {
variant='outline'
size='sm'
onClick={() =>
window.open('/console/setting?tab=ratio', '_blank')
window.open('/system-settings/billing/model-pricing', '_blank')
}
>
<Settings className='mr-1 h-3.5 w-3.5' />