feat(web): update api key
This commit is contained in:
@@ -171,9 +171,6 @@ const Api: FC<{ application: Application | null }> = ({ application }) => {
|
|||||||
<Col span={8}>
|
<Col span={8}>
|
||||||
<Statistic valueStyle={{ fontSize: '18px' }} title={t('application.apiKeyRequestTotal')} value={item.total_requests} />
|
<Statistic valueStyle={{ fontSize: '18px' }} title={t('application.apiKeyRequestTotal')} value={item.total_requests} />
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={8}>
|
|
||||||
<Statistic valueStyle={{ fontSize: '18px' }} title={t('application.qps')} value={item.quota_used} />
|
|
||||||
</Col>
|
|
||||||
<Col span={8}>
|
<Col span={8}>
|
||||||
<Statistic valueStyle={{ fontSize: '18px' }} title={t('application.qpsLimit')} value={item.rate_limit} />
|
<Statistic valueStyle={{ fontSize: '18px' }} title={t('application.qpsLimit')} value={item.rate_limit} />
|
||||||
</Col>
|
</Col>
|
||||||
|
|||||||
@@ -46,7 +46,9 @@ const ApiKeyConfigModal = forwardRef<ApiKeyConfigModalRef, ApiKeyConfigModalProp
|
|||||||
...values
|
...values
|
||||||
})
|
})
|
||||||
handleClose()
|
handleClose()
|
||||||
refresh()
|
setTimeout(() => {
|
||||||
|
refresh()
|
||||||
|
}, 50)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ const ApplicationModal = forwardRef<ApplicationModalRef, ApplicationModalProps>(
|
|||||||
const response = editVo?.id ? updateApplication(editVo.id, {
|
const response = editVo?.id ? updateApplication(editVo.id, {
|
||||||
...editVo,
|
...editVo,
|
||||||
...values,
|
...values,
|
||||||
} as Application) : addApplication(values as Application)
|
}) : addApplication(values)
|
||||||
response.then(() => {
|
response.then(() => {
|
||||||
refresh()
|
refresh()
|
||||||
handleClose()
|
handleClose()
|
||||||
@@ -127,7 +127,6 @@ const ApplicationModal = forwardRef<ApplicationModalRef, ApplicationModalProps>(
|
|||||||
label: t(`application.${type}`),
|
label: t(`application.${type}`),
|
||||||
labelDesc: t(`application.${type}Desc`),
|
labelDesc: t(`application.${type}Desc`),
|
||||||
icon: typeIcons[type],
|
icon: typeIcons[type],
|
||||||
disabled: editVo?.id || type === 'workflow'
|
|
||||||
}))}
|
}))}
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user