小调整
This commit is contained in:
@@ -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';
|
||||
@@ -194,7 +194,8 @@ export default () => {
|
||||
</div>
|
||||
</Title>
|
||||
|
||||
<Card loading={loading} className={`${titleSty} overflow-hidden rounded-xl min-h-[calc(100vh-180px)]`}>
|
||||
<Spin spinning={loading}>
|
||||
<Card className={`${titleSty} overflow-hidden rounded-xl min-h-[calc(100vh-180px)]`}>
|
||||
<Editor value={content} onChange={(value) => setContent(value)} />
|
||||
|
||||
<Drawer
|
||||
@@ -207,6 +208,7 @@ export default () => {
|
||||
<PublishForm data={data} closeModel={() => setPublishOpen(false)} />
|
||||
</Drawer>
|
||||
</Card >
|
||||
</Spin>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user