diff --git a/src/App.tsx b/src/App.tsx index af9e551..d71c732 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -23,7 +23,7 @@ function App() { const [currentProviderId, setCurrentProviderId] = useState(""); const [isAddModalOpen, setIsAddModalOpen] = useState(false); const [editingProviderId, setEditingProviderId] = useState( - null, + null ); const [notification, setNotification] = useState<{ message: string; @@ -44,7 +44,7 @@ function App() { const showNotification = ( message: string, type: "success" | "error", - duration = 3000, + duration = 3000 ) => { // 清除之前的定时器 if (timeoutRef.current) { @@ -196,7 +196,7 @@ function App() { ? t("notifications.removedFromClaudePlugin") : t("notifications.appliedToClaudePlugin"), "success", - 2000, + 2000 ); } } catch (error: any) { @@ -219,7 +219,7 @@ function App() { showNotification( t("notifications.switchSuccess", { appName }), "success", - 2000, + 2000 ); // 更新托盘菜单 await window.api.updateTrayMenu(); @@ -310,7 +310,7 @@ function App() { diff --git a/src/components/mcp/McpFormModal.tsx b/src/components/mcp/McpFormModal.tsx index 6b09858..89260f2 100644 --- a/src/components/mcp/McpFormModal.tsx +++ b/src/components/mcp/McpFormModal.tsx @@ -244,13 +244,13 @@ const McpFormModal: React.FC = ({