fix(ui): invalidate proxy takeover status after profile switch

This commit is contained in:
Jason
2026-07-04 22:54:15 +08:00
parent 4f45601f9f
commit f05ed3dbac
+4 -1
View File
@@ -382,11 +382,14 @@ function App() {
}
});
// 托盘应用项目后刷新相关缓存(providers 由既有 provider-switched 监听承接
// 应用项目后刷新相关缓存(providers 由既有 provider-switched 监听承接
// proxy 状态由后端直接改 DB,不走 mutation,必须显式刷新)
useTauriEvent("profile-applied", async () => {
await queryClient.invalidateQueries({ queryKey: ["profiles"] });
await queryClient.invalidateQueries({ queryKey: ["mcp", "all"] });
await queryClient.invalidateQueries({ queryKey: ["skills"] });
await queryClient.invalidateQueries({ queryKey: ["proxyTakeoverStatus"] });
await queryClient.invalidateQueries({ queryKey: ["proxyStatus"] });
});
useTauriEvent<SyncStatusUpdatedPayload | null | undefined>(