NEZ-1401 fix: 修复导入信息错误时,弹出导入正确提示

This commit is contained in:
@changcode
2021-12-20 11:05:41 +08:00
parent 7be6420c2b
commit 83b6751d5b

View File

@@ -268,13 +268,15 @@ export default {
},
closeDialog () {
this.importBox.show = false
this.$nextTick(() => {
this.importResult = null
this.importFileList = []
this.importFile = null
this.importBox.value = 1
this.importBox.record = 'all'
})
setTimeout(() => {
this.$nextTick(() => {
this.importResult = null
this.importFileList = []
this.importFile = null
this.importBox.value = 1
this.importBox.record = 'all'
})
}, 100)
},
downloadTemplate () {
const language = localStorage.getItem('nz-language') || 'en' // 初始未选择默认 en 英文