mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-06 12:23:44 +08:00
[feat]取消使用默认绕过且当绕过设置为空的时候使用默认绕过填充绕过配置以便用户基于默认配置修改。 (#3365)
This commit is contained in:
parent
d401a83c75
commit
ae4067aee6
@ -387,7 +387,12 @@ export const SysproxyViewer = forwardRef<DialogRef>((props, ref) => {
|
||||
edge="end"
|
||||
disabled={!enabled}
|
||||
checked={value.use_default}
|
||||
onChange={(_, e) => setValue((v) => ({ ...v, use_default: e }))}
|
||||
onChange={(_, e) => setValue((v) => ({
|
||||
...v,
|
||||
use_default: e,
|
||||
// 当取消选择use_default且当前bypass为空时,填充默认值
|
||||
bypass: (!e && !v.bypass) ? defaultBypass() : v.bypass
|
||||
}))}
|
||||
/>
|
||||
</ListItem>
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user