Commit 4c15e667 by AhJindeg

fix(UserImportForm): 🐞 add nextTick to resetForm

parent f6e4753b
...@@ -115,9 +115,10 @@ const submitFormError = (): void => { ...@@ -115,9 +115,10 @@ const submitFormError = (): void => {
} }
/** 重置表单 */ /** 重置表单 */
const resetForm = () => { const resetForm = async (): Promise<void> => {
// 重置上传状态和文件 // 重置上传状态和文件
formLoading.value = false formLoading.value = false
await nextTick()
uploadRef.value?.clearFiles() uploadRef.value?.clearFiles()
} }
......
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 sign in to comment