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-data-table
|
||||
:headers="headers"
|
||||
:items="node.conditionList"
|
||||
:items="node.conditionList || []"
|
||||
v-model="node.conditionList"
|
||||
:items-per-page="15"
|
||||
class="elevation-1"
|
||||
@@ -193,7 +193,7 @@
|
||||
</v-data-table>
|
||||
</v-form>
|
||||
</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-divider></v-divider>
|
||||
@@ -371,7 +371,7 @@
|
||||
]
|
||||
},
|
||||
selectedCondition(){
|
||||
return this.node.conditionList?.map(item => item.id).filter(item => item)
|
||||
return this.node.conditionList?.map(item => item.id).filter(item => item) || []
|
||||
},
|
||||
conditions(){
|
||||
var conditions = [
|
||||
|
||||
Reference in new issue
Block a user