diff --git a/src/views/system/systemInstallPackage/index.vue b/src/views/system/systemInstallPackage/index.vue index e6475b35e..83e7323c2 100644 --- a/src/views/system/systemInstallPackage/index.vue +++ b/src/views/system/systemInstallPackage/index.vue @@ -141,9 +141,14 @@ const openForm = (type: string, row?: any) => { if('create'==type){ const currentTime = new Date().getTime() const fileId = SystemInstallPackage.allSchemas.formSchema.find(item=>item.field=='fileId') - fileId['value'] = currentTime const uploadFile = SystemInstallPackage.allSchemas.formSchema.find(item=>item.field=='uploadFile') - uploadFile['componentProps']['upData']['tableId'] = currentTime + if(fileId){ + fileId['value'] = currentTime + } + if(uploadFile){ + uploadFile['componentProps']['upData']['tableId'] = currentTime + } + } basicFormRef.value.open(type, row) }