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

chore: update

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