fix bug
This commit is contained in:
1 parent
58ccf94378
commit
1c4f1fc384
1 file changed
+3
-3
@@ -160,7 +160,7 @@
|
|||||||
<v-form ref="conditionForm" lazy-validation>
|
<v-form ref="conditionForm" lazy-validation>
|
||||||
<v-data-table
|
<v-data-table
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
:items="node.conditionList"
|
:items="node.conditionList || []"
|
||||||
v-model="node.conditionList"
|
v-model="node.conditionList"
|
||||||
:items-per-page="15"
|
:items-per-page="15"
|
||||||
class="elevation-1"
|
class="elevation-1"
|
||||||
@@ -193,7 +193,7 @@
|
|||||||
</v-data-table>
|
</v-data-table>
|
||||||
</v-form>
|
</v-form>
|
||||||
</v-card>
|
</v-card>
|
||||||
<v-btn class="add-btn" @click="doUiAction('addCondition')" v-show="node.conditionList.length < this.conditions.length">添加条件</v-btn>
|
<v-btn class="add-btn" @click="doUiAction('addCondition')" v-show="node.conditionList?.length < this.conditions.length">添加条件</v-btn>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
|
|
||||||
<v-divider></v-divider>
|
<v-divider></v-divider>
|
||||||
@@ -371,7 +371,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
selectedCondition(){
|
selectedCondition(){
|
||||||
return this.node.conditionList?.map(item => item.id).filter(item => item)
|
return this.node.conditionList?.map(item => item.id).filter(item => item) || []
|
||||||
},
|
},
|
||||||
conditions(){
|
conditions(){
|
||||||
var conditions = [
|
var conditions = [
|
||||||
|
|||||||
Reference in new issue
Block a user