Skip to content

Let's use AI to Earn!

fix: 代理开关优化

gaoSir00f212670055
diff --git a/src/views/account/components/AccountSidebar/ProxyManage/index.tsx b/src/views/account/components/AccountSidebar/ProxyManage/index.tsx
index c636835b..69a1e223 100644
--- a/src/views/account/components/AccountSidebar/ProxyManage/index.tsx
+++ b/src/views/account/components/AccountSidebar/ProxyManage/index.tsx
@@ -60,16 +60,18 @@ const ProxyManage = memo(
render: (_, gri) => {
return (
<>
- <Switch
- value={gri.proxyOpen}
- onChange={async (v) => {
- await icpEditDeleteAccountGroup({
- id: gri.id,
- proxyOpen: v,
- });
- await getAccountGroup();
- }}
- />
+ {gri.proxyIp && (
+ <Switch
+ value={gri.proxyOpen}
+ onChange={async (v) => {
+ await icpEditDeleteAccountGroup({
+ id: gri.id,
+ proxyOpen: v,
+ });
+ await getAccountGroup();
+ }}
+ />
+ )}
</>
);
},