修改进度管理bug
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
:on-exceed="handleExceed"
|
||||
:on-success="handleUploadSuccess"
|
||||
:show-file-list="showFileList"
|
||||
:on-preview="handlePreview"
|
||||
:headers="headers"
|
||||
class="upload-file-uploader"
|
||||
:list-type="isConstruction ? 'picture-card' : 'text'"
|
||||
@ -308,6 +309,12 @@ const handleRemove = (file: any, fileList: any) => {
|
||||
emit('handleRemove', file, fileList);
|
||||
};
|
||||
|
||||
const handlePreview = (file: any) => {
|
||||
if (file.url) {
|
||||
window.open(file.url);
|
||||
}
|
||||
};
|
||||
|
||||
// 删除文件
|
||||
const handleDelete = async (index: string | number, type?: string) => {
|
||||
await proxy?.$modal.confirm('是否确认删除此文件?').finally();
|
||||
|
Reference in New Issue
Block a user