fix: 处理会话恢复后的状态监控启动

This commit is contained in:
Baobhan Sith
2025-05-13 17:37:01 +08:00
parent 2910951c21
commit 6bd1682ffe
5 changed files with 43 additions and 36 deletions
+12 -12
View File
@@ -391,12 +391,12 @@ export const useSettingsStore = defineStore('settings', () => {
'ipBlacklistEnabled',
'dashboardSortBy',
'dashboardSortOrder',
'showConnectionTags', // NEW
'showQuickCommandTags', // NEW
'layoutLocked', // NEW
'terminalScrollbackLimit', // NEW
'fileManagerShowDeleteConfirmation', // NEW
'terminalEnableRightClickPaste' // NEW
'showConnectionTags',
'showQuickCommandTags',
'layoutLocked',
'terminalScrollbackLimit',
'fileManagerShowDeleteConfirmation',
'terminalEnableRightClickPaste'
];
if (!allowedKeys.includes(key)) {
console.error(`[SettingsStore] 尝试更新不允许的设置键: ${key}`);
@@ -486,12 +486,12 @@ export const useSettingsStore = defineStore('settings', () => {
'ipBlacklistEnabled',
'dashboardSortBy',
'dashboardSortOrder',
'showConnectionTags', // NEW
'showQuickCommandTags', // NEW
'layoutLocked', // NEW
'terminalScrollbackLimit', // NEW
'fileManagerShowDeleteConfirmation', // NEW
'terminalEnableRightClickPaste' // NEW
'showConnectionTags',
'showQuickCommandTags',
'layoutLocked',
'terminalScrollbackLimit',
'fileManagerShowDeleteConfirmation',
'terminalEnableRightClickPaste'
];
const filteredUpdates: Partial<SettingsState> = {};
let languageUpdate: string | undefined = undefined;