|
|
@ -196,11 +196,6 @@ const Rest = (props) => { |
|
|
|
<Button theme='borderless' type='primary' style={{ marginRight: 8 }} ><a href={`/_file-server/${r.url + '?filename=' + encodeURIComponent(r.name)}`}> |
|
|
|
下载 |
|
|
|
</a></Button> |
|
|
|
<Button theme='borderless' type='primary' style={{ marginRight: 8 }} onClick={() => { |
|
|
|
preview(r.url) |
|
|
|
}}> |
|
|
|
预览 |
|
|
|
</Button> |
|
|
|
<Popconfirm |
|
|
|
title="是否确认删除文件?" |
|
|
|
// content="此修改将不可逆" |
|
|
@ -215,6 +210,16 @@ const Rest = (props) => { |
|
|
|
> |
|
|
|
<Button theme='borderless' type='danger' >删除</Button> |
|
|
|
</Popconfirm> |
|
|
|
{(r.url?.indexOf("txt") !== -1 || r.url?.indexOf("rar") !== -1 || r.url?.indexOf("zip") !== -1) ? "" |
|
|
|
: <Button theme='borderless' type='primary' style={{ marginRight: 8 }} onClick={() => { |
|
|
|
preview(r.url) |
|
|
|
}}> |
|
|
|
预览 |
|
|
|
</Button> |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
} |
|
|
|