mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-23 18:49:21 +08:00
fix: 关闭代理同时更新 Docker 代理 (#7028)
This commit is contained in:
parent
d06583773a
commit
7d4230ecfb
@ -206,7 +206,7 @@ func (u *DockerService) UpdateConf(req dto.SettingUpdate) error {
|
|||||||
}
|
}
|
||||||
daemonMap["proxies"] = proxies
|
daemonMap["proxies"] = proxies
|
||||||
}
|
}
|
||||||
case "socks5-proxy":
|
case "socks5-proxy", "close-proxy":
|
||||||
delete(daemonMap, "proxies")
|
delete(daemonMap, "proxies")
|
||||||
if len(req.Value) > 0 {
|
if len(req.Value) > 0 {
|
||||||
proxies := map[string]interface{}{
|
proxies := map[string]interface{}{
|
||||||
|
@ -195,6 +195,9 @@ const submitChangePassword = async (formEl: FormInstance | undefined) => {
|
|||||||
loading.value = false;
|
loading.value = false;
|
||||||
emit('search');
|
emit('search');
|
||||||
passwordVisible.value = false;
|
passwordVisible.value = false;
|
||||||
|
if (isClose) {
|
||||||
|
await updateDaemonJson(`${form.proxyType}-proxy`, '');
|
||||||
|
}
|
||||||
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user