fix: port value not rerender

This commit is contained in:
GyDi 2021-12-20 00:36:50 +08:00
parent cb8c7057ee
commit 9a85b28b18

View File

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