mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-06 05:24:33 +08:00
parent
e2b6ea5253
commit
2bee68dd40
2 changed files with 9 additions and 4 deletions
|
@ -120,7 +120,7 @@ func (u *DeviceService) Update(key, value string) error {
|
||||||
if err := ntp.UpdateSystemTimeZone(value); err != nil {
|
if err := ntp.UpdateSystemTimeZone(value); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
go common.RestartService(true, true, false)
|
go common.RestartService(global.IsMaster, true, false)
|
||||||
case "DNS":
|
case "DNS":
|
||||||
if err := updateDNS(strings.Split(value, ",")); err != nil {
|
if err := updateDNS(strings.Split(value, ",")); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -100,9 +100,14 @@ const onSave = async (formEl: FormInstance | undefined) => {
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
||||||
globalStore.isLogin = false;
|
if (globalStore.currentNode === 'local') {
|
||||||
let href = window.location.href;
|
globalStore.isLogin = false;
|
||||||
window.open(href, '_self');
|
let href = window.location.href;
|
||||||
|
window.open(href, '_self');
|
||||||
|
} else {
|
||||||
|
globalStore.currentNode = 'local';
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue