fix: error when no data
This commit is contained in:
parent
4f3d39bf59
commit
10534f2f25
2 changed files with 3 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ async function triggerSubmit() {
|
|||
const res = await requestListStore.editRequestWork({
|
||||
id: props.id,
|
||||
attributes: {
|
||||
...attributes.value,
|
||||
...(attributes.value || {}),
|
||||
properties: formData.value,
|
||||
remark: formRemark.value,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -432,7 +432,7 @@ async function triggerViewFile(opt: {
|
|||
>
|
||||
<ProductExpansion
|
||||
:status="
|
||||
value.stepStatus.find((v) => v.step === pageState.currentStep)
|
||||
value.stepStatus?.find((v) => v.step === pageState.currentStep)
|
||||
"
|
||||
v-model:product-id="value.productService.productId"
|
||||
:name="value.productService.product.name"
|
||||
|
|
@ -509,7 +509,7 @@ async function triggerViewFile(opt: {
|
|||
}"
|
||||
:id="value.id"
|
||||
:attributes-form="
|
||||
value.stepStatus[pageState.currentStep - 1]?.attributes
|
||||
value.stepStatus?.[pageState.currentStep - 1]?.attributes
|
||||
?.form
|
||||
"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue