mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-18 10:40:50 +08:00
fix
This commit is contained in:
@@ -22,6 +22,7 @@ export function AmpcodeSection({
|
||||
onEdit,
|
||||
}: AmpcodeSectionProps) {
|
||||
const { t } = useTranslation();
|
||||
const showLoadingPlaceholder = loading && !config;
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -42,7 +43,7 @@ export function AmpcodeSection({
|
||||
</Button>
|
||||
}
|
||||
>
|
||||
{loading ? (
|
||||
{showLoadingPlaceholder ? (
|
||||
<div className="hint">{t('common.loading')}</div>
|
||||
) : (
|
||||
<>
|
||||
|
||||
@@ -34,7 +34,7 @@ export function ProviderList<T>({
|
||||
}: ProviderListProps<T>) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
if (loading) {
|
||||
if (loading && items.length === 0) {
|
||||
return <div className="hint">{t('common.loading')}</div>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user