Skip to content

Commit 4c15e66

Browse files
committed
fix(UserImportForm): 🐞 add nextTick to resetForm
1 parent f6e4753 commit 4c15e66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/views/system/user/UserImportForm.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ const submitFormError = (): void => {
115115
}
116116
117117
/** 重置表单 */
118-
const resetForm = () => {
118+
const resetForm = async (): Promise<void> => {
119119
// 重置上传状态和文件
120120
formLoading.value = false
121+
await nextTick()
121122
uploadRef.value?.clearFiles()
122123
}
123124

0 commit comments

Comments
 (0)