导入传参
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<a-upload name="file" :showUploadList="false"
|
<a-upload name="file" :showUploadList="false"
|
||||||
class="upload-text"
|
class="upload-text"
|
||||||
:multiple="false" :headers="tokenHeader"
|
:multiple="false" :headers="tokenHeader"
|
||||||
:action="importUrl"
|
:action="importUrl+'?cut='+cut"
|
||||||
@change="handleImportZip"
|
@change="handleImportZip"
|
||||||
accept=".zip">
|
accept=".zip">
|
||||||
<a-icon type="import" :rotate="270"/>
|
<a-icon type="import" :rotate="270"/>
|
||||||
@@ -28,10 +28,18 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tokenHeader: {'X-Access-Token': Vue.ls.get(ACCESS_TOKEN)},
|
tokenHeader: {'X-Access-Token': Vue.ls.get(ACCESS_TOKEN)},
|
||||||
importUrl: window._CONFIG['domianURL'] + this.url.importZipUrl
|
importUrl: window._CONFIG['domianURL'] + this.url.importZipUrl,
|
||||||
|
cut: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
let long = localStorage.getItem('language')
|
||||||
|
this.cut = ''
|
||||||
|
if (long && long == 'zh-cn') {
|
||||||
|
this.cut = 'cn'
|
||||||
|
} else if (long && long == 'en-us') {
|
||||||
|
this.cut = 'en'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleImportZip(info) {
|
handleImportZip(info) {
|
||||||
|
|||||||
Reference in New Issue
Block a user