mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-26 00:46:07 +08:00
修复脚本管理editorRef错误
This commit is contained in:
parent
9e4b41ce48
commit
6ed4aa6bf4
|
@ -179,7 +179,7 @@ const EditModal = ({
|
|||
setSaveModalVisible(false);
|
||||
}}
|
||||
isNewFile={isNewFile}
|
||||
file={{ content: editorRef.current.getValue(1), filename: fileName }}
|
||||
file={{ content: editorRef.current && editorRef.current.getValue(1), filename: fileName }}
|
||||
/>
|
||||
<SettingModal
|
||||
visible={settingModalVisible}
|
||||
|
|
Loading…
Reference in New Issue
Block a user