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