Skip to content

Commit

Permalink
fix: mixed lifeCyclesContent when empty lifecycles (opentiny#810)
Browse files Browse the repository at this point in the history
close opentiny#806
修复生命周期为空时,取当前页面schema生命周期值的 bug
  • Loading branch information
chilingling authored Sep 24, 2024
1 parent 2ce7c4a commit 3a831bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/component/LifeCycles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default {
})
watchEffect(() => {
state.bindLifeCycles = props.bindLifeCycles || useCanvas().canvasApi.value?.getSchema()?.lifeCycles || {}
state.bindLifeCycles = props.bindLifeCycles || {}
})
const searchLifeCyclesList = (value) => {
Expand Down

0 comments on commit 3a831bf

Please sign in to comment.