From c6b248ab6f0526a798a3aa19436fad29bf63d2ee Mon Sep 17 00:00:00 2001 From: lijiahangmax Date: Mon, 1 Dec 2025 09:59:48 +0800 Subject: [PATCH] =?UTF-8?q?:hammer:=20=E4=BC=98=E5=8C=96=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/app/setting/block.vue | 14 +++++------ .../asset/host-group/tree-selector/index.vue | 1 - .../asset/host-group/tree/index.vue | 3 --- .../asset/host-identity/selector/index.vue | 1 - .../asset/host-key/selector/index.vue | 1 - .../host/authorized-host-modal/index.vue | 1 - .../components/asset/host/selector/index.vue | 1 - .../components/exec/job/selector/index.vue | 1 - .../components/exec/log/panel/log-appender.ts | 1 + .../components/exec/template/modal/index.vue | 1 - .../components/meta/cron/next-modal/index.vue | 1 - .../components/meta/history/modal/index.vue | 2 -- .../meta/tag/multi-selector/index.vue | 1 - .../monitor/alarm-policy/selector/index.vue | 1 - .../monitor/host/selector/index.vue | 1 - .../monitor/metrics/selector/index.vue | 1 - .../system/dict-key/selector/index.vue | 1 - .../system/menu/tree-selector/index.vue | 1 - .../components/system/message-box/index.vue | 25 ++++++++++--------- .../system/notify-template/selector/index.vue | 1 - .../bookmark-path/group/selector/index.vue | 1 - .../command-snippet/gruop/selector/index.vue | 1 - .../components/user/role/selector/index.vue | 1 - .../components/user/user/selector/index.vue | 1 - .../user/user/update-password-modal/index.vue | 2 -- .../session/terminal-session-manager.ts | 1 + 26 files changed, 21 insertions(+), 46 deletions(-) diff --git a/orion-visor-ui/src/components/app/setting/block.vue b/orion-visor-ui/src/components/app/setting/block.vue index b9482dbf..049a9297 100644 --- a/orion-visor-ui/src/components/app/setting/block.vue +++ b/orion-visor-ui/src/components/app/setting/block.vue @@ -58,15 +58,13 @@ // 修改配置 appStore.updateSettings({ [key]: value }); // 同步偏好 - try { - await updatePreference({ - type: 'SYSTEM', - item: key, - value - }); - } catch (e) { - } + await updatePreference({ + type: 'SYSTEM', + item: key, + value + }); }; +