Explorar o código

fix: port value not rerender

GyDi %!s(int64=3) %!d(string=hai) anos
pai
achega
9a85b28b18
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      src/components/setting-clash.tsx

+ 6 - 1
src/components/setting-clash.tsx

@@ -92,7 +92,12 @@ const SettingClash = ({ onError }: Props) => {
 
       <SettingItem>
         <ListItemText primary="混合代理端口" />
-        <TextField size="small" defaultValue={mixedPort!} sx={{ width: 120 }} />
+        <TextField
+          size="small"
+          value={mixedPort!}
+          sx={{ width: 120 }}
+          disabled
+        />
       </SettingItem>
     </List>
   );