mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-10 09:50:25 +08:00
refactor: 机器终端操作优化
This commit is contained in:
@@ -174,12 +174,7 @@ watch(preDark, (newValue) => {
|
||||
});
|
||||
|
||||
const switchDark = () => {
|
||||
themeConfig.value.isDark = isDark.value;
|
||||
if (isDark.value) {
|
||||
themeConfig.value.editorTheme = 'vs-dark';
|
||||
} else {
|
||||
themeConfig.value.editorTheme = 'vs';
|
||||
}
|
||||
themeConfigStore.switchDark(isDark.value);
|
||||
saveThemeConfig(themeConfig.value);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user