Update page.tsx

This commit is contained in:
Typer_Body
2026-01-25 01:36:51 +08:00
committed by GitHub
parent 81ec7c201c
commit 24d865bcd3
+4
View File
@@ -402,6 +402,7 @@ export default function PluginConfigPage() {
}; };
const handleCopyDebugInfo = (text: string, type: 'url' | 'key') => { const handleCopyDebugInfo = (text: string, type: 'url' | 'key') => {
try {
navigator.clipboard.writeText(text); navigator.clipboard.writeText(text);
if (type === 'url') { if (type === 'url') {
setCopiedDebugUrl(true); setCopiedDebugUrl(true);
@@ -410,6 +411,9 @@ export default function PluginConfigPage() {
setCopiedDebugKey(true); setCopiedDebugKey(true);
setTimeout(() => setCopiedDebugKey(false), 2000); setTimeout(() => setCopiedDebugKey(false), 2000);
} }
} catch {
}
}; };
const renderPluginDisabledState = () => ( const renderPluginDisabledState = () => (