修改导入的默认显示文件

This commit is contained in:
qq787203167
2022-04-21 17:49:48 +08:00
parent ba76500596
commit 122ecc6ffa
8 changed files with 36 additions and 25 deletions
+8 -4
View File
@@ -4,8 +4,8 @@
class="upload-text"
:multiple="false" :headers="tokenHeader"
:action="importUrl+'?cut='+cut"
@change="handleImportZip"
accept=".zip">
@change="handleImport"
:accept="accept">
<a-icon type="import" :rotate="270"/>
{{$t('import')}}
</a-upload>
@@ -28,7 +28,11 @@
isTrue:{
type: Boolean,
default: false
}
},
accept:{
type: String,
default: ''
},
},
data() {
return {
@@ -47,7 +51,7 @@
}
},
methods: {
handleImportZip(info) {
handleImport(info) {
this.spinning = true
if (info.file.status !== 'uploading') {
console.log(info.file, info.fileList)