fix: request list => prevent null on assign properties
This commit is contained in:
parent
d58333224c
commit
313e5e3705
1 changed files with 2 additions and 1 deletions
|
|
@ -62,6 +62,7 @@ async function triggerSubmit() {
|
|||
});
|
||||
|
||||
if (res) {
|
||||
if (!attributes.value) attributes.value = {};
|
||||
attributes.value.remark = formRemark.value || '';
|
||||
attributes.value.properties = JSON.parse(
|
||||
JSON.stringify(formData.value || {}),
|
||||
|
|
@ -146,7 +147,7 @@ defineEmits<{
|
|||
<section class="col-5">
|
||||
<q-input
|
||||
class="full-height"
|
||||
:model-value="formRemark || '-'"
|
||||
:model-value="!state.isEdit ? formRemark || '-' : formRemark"
|
||||
dense
|
||||
:readonly="!state.isEdit"
|
||||
outlined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue