🐛 Fixed the issue of scroll wheel modifying font size and the problem of automatic language detection failing

This commit is contained in:
2026-03-28 22:35:09 +08:00
parent 6e49516962
commit 03191a219f
8 changed files with 216 additions and 141 deletions

View File

@@ -92,8 +92,14 @@ export const useEditorStore = defineStore('editor', () => {
// 滚轮缩放扩展
const wheelZoomExtension = createWheelZoomExtension({
increaseFontSize: () => configStore.increaseFontSizeLocal(),
decreaseFontSize: () => configStore.decreaseFontSizeLocal(),
increaseFontSize: () => {
configStore.increaseFontSizeLocal();
applyFontSettings();
},
decreaseFontSize: () => {
configStore.decreaseFontSizeLocal();
applyFontSettings();
},
onSave: () => configStore.saveFontSize(),
saveDelay: 1000
});