bug: 政策法规资料导入添加token
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
drag
|
drag
|
||||||
:action="action"
|
:action="action"
|
||||||
ref="importfile"
|
ref="importfile"
|
||||||
|
:headers="headers"
|
||||||
name="file"
|
name="file"
|
||||||
accept=".ZIP, .zip"
|
accept=".ZIP, .zip"
|
||||||
:before-upload="beginImportFile"
|
:before-upload="beginImportFile"
|
||||||
@@ -41,6 +42,9 @@ export default {
|
|||||||
name: "importZip",
|
name: "importZip",
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
headers:{
|
||||||
|
token: JSON.parse(localStorage.getItem('userInfo')).token
|
||||||
|
},
|
||||||
importFailed: false,
|
importFailed: false,
|
||||||
importForm: {}
|
importForm: {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user