|
@@ -55,7 +55,7 @@ const props = defineProps({
|
|
|
})
|
|
|
|
|
|
//事件
|
|
|
-const emit = defineEmits(['change'])
|
|
|
+const emit = defineEmits(['change', 'close'])
|
|
|
//变量
|
|
|
const uploadData = ref(props.datas)
|
|
|
const fileListData = ref(props.fileList)
|
|
@@ -137,6 +137,7 @@ const uploadError = () => {
|
|
|
|
|
|
//预览
|
|
|
const uploadPreview = ({ url }) => {
|
|
|
+ emit('close')
|
|
|
toPdfPage(url)
|
|
|
/*if (url) {
|
|
|
window.open(url, '_blank')
|