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

This commit is contained in:
2024-11-13 14:50:00 +08:00 committed by GitHub
parent d06583773a
commit 7d4230ecfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -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{}{

View File

@ -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(() => {