fix: 解决更新云同步任务时,优先级无法更新问题

This commit is contained in:
jiangweidong 2023-11-02 15:39:22 +08:00 committed by Bryan
parent 379cd2386a
commit dc401f80b9

View File

@ -27,7 +27,7 @@ export default {
props: {
value: {
type: Object,
default: () => ({ name: '', strategy_rules: [], strategy_actions: [] })
default: () => ({ name: '', priority: 50, strategy_rules: [], strategy_actions: [] })
},
tableConfig: {
type: Object,
@ -76,7 +76,7 @@ export default {
getObject() {
if (this.value?.id) {
return {
id: this.value.id, name: this.value.name,
id: this.value.id, name: this.value.name, priority: this.value.priority,
strategy_rules: this.value.strategy_rules, strategy_actions: this.value.strategy_actions
}
}