|
|
|
|
@ -7,7 +7,7 @@ import useSnippetStore from '@/stores/SnippetStore'
|
|
|
|
|
import useAuthStore from '@/stores/AuthStore'
|
|
|
|
|
|
|
|
|
|
function SnippetList() {
|
|
|
|
|
const [messageApi, contextHolder] = message.useMessage()
|
|
|
|
|
const { message, notification } = App.useApp()
|
|
|
|
|
|
|
|
|
|
const [searchform] = Form.useForm()
|
|
|
|
|
const [snippetForm] = Form.useForm()
|
|
|
|
|
@ -32,7 +32,6 @@ function SnippetList() {
|
|
|
|
|
|
|
|
|
|
const [loginUser] = useAuthStore((state) => [state.loginUser])
|
|
|
|
|
|
|
|
|
|
const { notification } = App.useApp()
|
|
|
|
|
const [isSnippetModalOpen, setSnippetModalOpen] = useState(false)
|
|
|
|
|
const [isHtmlLoading, setHtmlLoading] = useState(false)
|
|
|
|
|
|
|
|
|
|
@ -236,14 +235,13 @@ function SnippetList() {
|
|
|
|
|
value={currentSnippet.content}
|
|
|
|
|
loading={isHtmlLoading}
|
|
|
|
|
onEdit={() => handelSnippetEdit()}
|
|
|
|
|
onCopied={() => messageApi.success('已复制')}
|
|
|
|
|
onCopied={() => message.success('已复制😀')}
|
|
|
|
|
onDelete={() => handelSnippetDelete()}
|
|
|
|
|
/>
|
|
|
|
|
</Col>
|
|
|
|
|
<div></div>
|
|
|
|
|
</Row>
|
|
|
|
|
</Space>
|
|
|
|
|
{contextHolder}
|
|
|
|
|
</>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|