Commit bdd3a116 by 王志慧

fixed

1 parent 2a0ef73d
......@@ -95,8 +95,8 @@ function aToExport(url) {
a.click()
}
function getArrayIsSubset (arr2, arr1) {
if(arr2.length ==0) return false
return arr2.every(item => {
console.log(arr1.includes(item))
return arr1.includes(item)
})
}
......
......@@ -598,7 +598,6 @@ export default {
}
const header = await this.compareHeader(file)
if (!util.getArrayIsSubset(header, tabelHeaderModel)) {
this.$refs.file.value = ''
this.$message.error('模版错误')
} else {
const reader = new FileReader()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!