Commit d67ae5b8 authored by chenqikuai's avatar chenqikuai

fix: 修复点击导入后再次点击导入选择文件后没有执行导入的bug

parent bae282cf
......@@ -152,7 +152,8 @@ export default Vue.extend({
async handleFileChange(e: Event) {
this.loading = true
try {
const ret = await handle建设银行excelFileChange(e)
const ret = await handle建设银行excelFileChange(e);
(this.$refs.importExcel as HTMLInputElement).value = '';
const ret2 = await StaffService.getInstance().import({
staffs: ret as iStaffItem[],
})
......@@ -161,7 +162,7 @@ export default Vue.extend({
;(this.$refs.headerSelect as any).init()
}
} catch (err) {
message.error(err)
message.error(err as string)
}
this.loading = false
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment