提交 ee0d0a17 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 eec851f8
......@@ -23,14 +23,14 @@ const handleConfirm = () => {
emit('update')
}
const handleCancel = () => {
const fileList = uploadMultipleVideoRef?.uploader?._uploadList || []
if (fileList.length) {
for (const item of fileList) {
if (item.state === 'Uploading') {
return ElMessage.error('请先完成上传')
}
}
}
// const fileList = uploadMultipleVideoRef?.uploader?._uploadList || []
// if (fileList.length) {
// for (const item of fileList) {
// if (item.state === 'Uploading') {
// return ElMessage.error('请先完成上传')
// }
// }
// }
emit('update:modelValue', false)
}
// 上传视频成功
......
......@@ -31,7 +31,7 @@ const deleteFile = function (index: number, item: any) {
console.log(index, 'deleteFile', files)
cancelUpload(item)
}
defineExpose({ files: $$(files) })
defineExpose({ files })
</script>
<template>
<div class="upload-video" style="display: flex; flex-direction: column; align-items: flex-start">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论