File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 4545 </div >
4646 <el-divider style =" margin : 8px 0 " />
4747 <el-upload
48+ ref =" elUploadRef"
4849 :file-list =" []"
4950 action =" #"
5051 multiple
@@ -179,7 +180,7 @@ import { isWorkFlow } from '@/utils/application'
179180import { ValidType , ValidCount } from ' @/enums/common'
180181import { t } from ' @/locales'
181182import useStore from ' @/stores'
182-
183+ const elUploadRef = ref < any >()
183184const { application, user, common } = useStore ()
184185const router = useRouter ()
185186
@@ -233,6 +234,7 @@ const exportApplication = (application: any) => {
233234const importApplication = (file : any ) => {
234235 const formData = new FormData ()
235236 formData .append (' file' , file .raw , file .name )
237+ elUploadRef .value .clearFiles ()
236238 applicationApi .importApplication (formData , loading ).then ((ok ) => {
237239 searchHandle ()
238240 })
You can’t perform that action at this time.
0 commit comments