diff --git a/src/pages/Create/index.tsx b/src/pages/Create/index.tsx index 9736781..c955972 100644 --- a/src/pages/Create/index.tsx +++ b/src/pages/Create/index.tsx @@ -1,6 +1,6 @@ import { useEffect, useState } from 'react'; import { useSearchParams } from 'react-router-dom'; -import { Button, Card, Drawer, Dropdown, MenuProps, message } from 'antd'; +import { Button, Card, Drawer, Dropdown, MenuProps, message, Spin } from 'antd'; import Title from '@/components/Title'; import Editor from './components/Editor'; @@ -143,7 +143,7 @@ export default () => { // 保留最后一行未处理的数据 receivedText = lines[lines.length - 1]; - + setLoading(false) } } catch (error) { @@ -194,19 +194,21 @@ export default () => { - - setContent(value)} /> + + + setContent(value)} /> - setPublishOpen(false)} - open={publishOpen} - > - setPublishOpen(false)} /> - - + setPublishOpen(false)} + open={publishOpen} + > + setPublishOpen(false)} /> + + + ); }; \ No newline at end of file