fix(upload): fix `process` is not defined when using vite (#3930)
parent
44e73cf460
commit
07ba6e48c6
|
@ -70,7 +70,7 @@ export default defineComponent({
|
||||||
fileList: nextFileList,
|
fileList: nextFileList,
|
||||||
});
|
});
|
||||||
// fix ie progress
|
// fix ie progress
|
||||||
if (!window.File || process.env.TEST_IE) {
|
if (!window.File || (typeof process === 'object' && process.env.TEST_IE)) {
|
||||||
this.autoUpdateProgress(0, targetItem);
|
this.autoUpdateProgress(0, targetItem);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue