mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 03:58:05 +08:00
fix(upload): fix process
is not defined when using vite (#3930)
This commit is contained in:
parent
44e73cf460
commit
07ba6e48c6
@ -70,7 +70,7 @@ export default defineComponent({
|
||||
fileList: nextFileList,
|
||||
});
|
||||
// fix ie progress
|
||||
if (!window.File || process.env.TEST_IE) {
|
||||
if (!window.File || (typeof process === 'object' && process.env.TEST_IE)) {
|
||||
this.autoUpdateProgress(0, targetItem);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user