Skip to content

Commit

Permalink
fix: default value not display
Browse files Browse the repository at this point in the history
  • Loading branch information
w940853815 committed Nov 21, 2024
1 parent 8477888 commit 1b2f7ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/views/ops/Template/components/Variable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ export default {
variables: {
handler(value) {
if (value.length > 0 || this.initial) {
value.map((item) => {
item.default_value = item.text_default_value || item.select_default_value
})
this.$emit('input', value)
}
if (value) {
Expand Down

0 comments on commit 1b2f7ad

Please sign in to comment.