Commit b2002101 by 杨明

条件

1 parent 5980ebfc
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-25 13:34:43 * @Date: 2023-12-25 13:34:43
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-05 12:39:42 * @LastEditTime: 2024-01-05 17:11:41
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\condition.vue * @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\condition.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -88,8 +88,10 @@ export default { ...@@ -88,8 +88,10 @@ export default {
}, },
watch: { watch: {
'conditionList.flag'(val) { 'conditionList.flag'(val) {
if (!this.conditionList.conditions.length) return
if (!val) { if (!val) {
;(val = this.conditionList.conditions[0]), (this.conditionList.flag = val.id) val = this.conditionList.conditions[0]
this.conditionList.flag = val.id
} }
this.condition = this.conditionList.conditions.find(i => i.id == val) this.condition = this.conditionList.conditions.find(i => i.id == val)
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!