|
@@ -30,7 +30,11 @@ const open = async (id: string) => {
|
|
|
defineExpose({ open })
|
|
defineExpose({ open })
|
|
|
|
|
|
|
|
const parseFormFields = () => {
|
|
const parseFormFields = () => {
|
|
|
- const formFieldsObj = decodeFields(printData.value.processInstance.processDefinition.formFields)
|
|
|
|
|
|
|
+ if (!printData.value) return
|
|
|
|
|
+
|
|
|
|
|
+ const formFieldsObj = decodeFields(
|
|
|
|
|
+ printData.value.processInstance.processDefinition?.formFields || []
|
|
|
|
|
+ )
|
|
|
const processVariables = printData.value.processInstance.formVariables
|
|
const processVariables = printData.value.processInstance.formVariables
|
|
|
let res: any = []
|
|
let res: any = []
|
|
|
for (const item of formFieldsObj) {
|
|
for (const item of formFieldsObj) {
|