mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-05 21:14:40 +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 {
|
||||
return err
|
||||
}
|
||||
go common.RestartService(true, true, false)
|
||||
go common.RestartService(global.IsMaster, true, false)
|
||||
case "DNS":
|
||||
if err := updateDNS(strings.Split(value, ",")); err != nil {
|
||||
return err
|
||||
|
|
|
@ -100,9 +100,14 @@ const onSave = async (formEl: FormInstance | undefined) => {
|
|||
.then(async () => {
|
||||
loading.value = false;
|
||||
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
||||
globalStore.isLogin = false;
|
||||
let href = window.location.href;
|
||||
window.open(href, '_self');
|
||||
if (globalStore.currentNode === 'local') {
|
||||
globalStore.isLogin = false;
|
||||
let href = window.location.href;
|
||||
window.open(href, '_self');
|
||||
} else {
|
||||
globalStore.currentNode = 'local';
|
||||
location.reload();
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
loading.value = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue