Commit 07011850 authored by chenqikuai's avatar chenqikuai

fix: 修复导入失败后,再次点击导入应用无相应的问题

parent f8f778a9
...@@ -170,7 +170,6 @@ export default Vue.extend({ ...@@ -170,7 +170,6 @@ export default Vue.extend({
this.loading = true this.loading = true
try { 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({ const ret2 = await StaffService.getInstance().import({
staffs: ret as iStaffItem[], staffs: ret as iStaffItem[],
}) })
...@@ -182,6 +181,7 @@ export default Vue.extend({ ...@@ -182,6 +181,7 @@ export default Vue.extend({
} catch (err) { } catch (err) {
message.error(err as string) message.error(err as string)
} }
;(this.$refs.importExcel as HTMLInputElement).value = ''
this.loading = false this.loading = false
}, },
clearPostion() { clearPostion() {
......
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