fix: 关闭代理同时更新 Docker 代理 (#7028)

pull/7031/head
2 weeks ago committed by GitHub
parent d06583773a
commit 7d4230ecfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -206,7 +206,7 @@ func (u *DockerService) UpdateConf(req dto.SettingUpdate) error {
}
daemonMap["proxies"] = proxies
}
case "socks5-proxy":
case "socks5-proxy", "close-proxy":
delete(daemonMap, "proxies")
if len(req.Value) > 0 {
proxies := map[string]interface{}{

@ -195,6 +195,9 @@ const submitChangePassword = async (formEl: FormInstance | undefined) => {
loading.value = false;
emit('search');
passwordVisible.value = false;
if (isClose) {
await updateDaemonJson(`${form.proxyType}-proxy`, '');
}
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
})
.catch(() => {

Loading…
Cancel
Save