Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -906,8 +906,8 @@ onMounted(async () => { | ... | @@ -906,8 +906,8 @@ onMounted(async () => { |
| 906 | ] | 906 | ] |
| 907 | } | 907 | } |
| 908 | 908 | ||
| 909 | - // 如果有默认选中值,初始化显示文本 | 909 | + // 如果有默认选中值,且非编辑模式(编辑模式下由initEditData统一处理,避免逻辑重复) |
| 910 | - if (selectedTaskValue.value.length > 0) { | 910 | + if (selectedTaskValue.value.length > 0 && !isEditMode.value) { |
| 911 | const option = taskOptions.value.find(o => o.value === selectedTaskValue.value[0]) | 911 | const option = taskOptions.value.find(o => o.value === selectedTaskValue.value[0]) |
| 912 | if (option) { | 912 | if (option) { |
| 913 | selectedTaskText.value = option.text | 913 | selectedTaskText.value = option.text | ... | ... |
-
Please register or login to post a comment