fix: port value not rerender

This commit is contained in:
GyDi committed 2021-12-20 00:36:50 +08:00
1 parent cb8c7057ee
commit 9a85b28b18
1 file changed
+6 -1
+6 -1
View File
@@ -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>
);