Skip to content

Commit 07ba6e4

Browse files
authored
fix(upload): fix process is not defined when using vite (#3930)
1 parent 44e73cf commit 07ba6e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/upload/Upload.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default defineComponent({
7070
fileList: nextFileList,
7171
});
7272
// fix ie progress
73-
if (!window.File || process.env.TEST_IE) {
73+
if (!window.File || (typeof process === 'object' && process.env.TEST_IE)) {
7474
this.autoUpdateProgress(0, targetItem);
7575
}
7676
},

0 commit comments

Comments
 (0)