add change password
This commit is contained in:
@@ -43,19 +43,19 @@ export const QuickPreview = () => {
|
||||
let accordionList: AccordionItem[] = [];
|
||||
const encodeUrl = encodeURIComponent(url);
|
||||
const previewUrl = `${baseUrl}/app/preview?fileUrl=${encodeUrl}&fileType=${fileType}`;
|
||||
accordionList.push({
|
||||
title: '文件预览',
|
||||
key: 'preview-file',
|
||||
url: previewUrl,
|
||||
content: (
|
||||
<div className=''>
|
||||
<div className='text-sm break-words'>{previewUrl}</div>
|
||||
<Button variant='contained' color='primary' style={{ color: 'white' }} onClick={() => window.open(previewUrl, '_blank')}>
|
||||
点击查看
|
||||
</Button>
|
||||
</div>
|
||||
),
|
||||
});
|
||||
// accordionList.push({
|
||||
// title: '文件预览',
|
||||
// key: 'preview-file',
|
||||
// url: previewUrl,
|
||||
// content: (
|
||||
// <div className=''>
|
||||
// <div className='text-sm break-words'>{previewUrl}</div>
|
||||
// <Button variant='contained' color='primary' style={{ color: 'white' }} onClick={() => window.open(previewUrl, '_blank')}>
|
||||
// 点击查看
|
||||
// </Button>
|
||||
// </div>
|
||||
// ),
|
||||
// });
|
||||
|
||||
if (fileType === 'image') {
|
||||
accordionList.push({
|
||||
|
||||
Reference in New Issue
Block a user