Skip to content

Commit

Permalink
Merge pull request #1472 from jumpserver/pr@dev@fixed_setting-sync
Browse files Browse the repository at this point in the history
fixed: Fixed an issue where changes to Settings could not be synchronized
  • Loading branch information
ZhaoJiSen authored Sep 10, 2024
2 parents 7e9d111 + 506dd87 commit 1e36e2f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/src/router/helper/guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ const getLunaConfig = () => {
let fontSize = terminalStore.fontSize;

if (localSetting !== null) {
let commandLine = JSON.parse(localSetting)['command_line'];
// @ts-ignore
let commandLine = localSetting['command_line'];

console.info(commandLine);

if (commandLine) {
fontSize = commandLine['character_terminal_font_size'];
setTerminalConfig('quickPaste', commandLine['is_right_click_quickly_paste'] ? '1' : '0');
Expand Down

0 comments on commit 1e36e2f

Please sign in to comment.