Commit 81bb3249 authored by gxkai's avatar gxkai

chore: 修改字体

parent 24ab2018
......@@ -161,9 +161,8 @@ export const EditorUI = (props: EditorUIProps) => {
}
props.editorAPI.getFontSize = () => {
debugger
if (!editorRef.current) return
return Number(editorRef.current.getFontSize())
return parseInt(editorRef.current.getFontSize())
}
function onLoad (editor: Ace.Editor) {
editorRef.current = editor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment