This commit is contained in:
parent
f5e6375b37
commit
bd0278ec12
|
|
@ -225,6 +225,7 @@
|
||||||
<el-upload
|
<el-upload
|
||||||
class="upload-demo"
|
class="upload-demo"
|
||||||
:action="uploadUrl"
|
:action="uploadUrl"
|
||||||
|
:data="{ fileType: 'xs' }"
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
accept="image/*,application/pdf"
|
accept="image/*,application/pdf"
|
||||||
:limit="5"
|
:limit="5"
|
||||||
|
|
@ -1332,9 +1333,9 @@ export default {
|
||||||
handlePreview(file) {
|
handlePreview(file) {
|
||||||
console.log('🚀 ~ handlePreview ~ file:', file)
|
console.log('🚀 ~ handlePreview ~ file:', file)
|
||||||
if (file.response) {
|
if (file.response) {
|
||||||
window.open(file.response.data.fileUrl)
|
window.open(process.env.VUE_APP_BASE_API + '/system'+ file.response.data.fileUrl)
|
||||||
} else {
|
} else {
|
||||||
window.open(file.fileUrl)
|
window.open(process.env.VUE_APP_BASE_API + '/system'+ file.fileUrl)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleExceed(files, fileList) {
|
handleExceed(files, fileList) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue