Skip to content

Commit

Permalink
fix: 优化setData时序
Browse files Browse the repository at this point in the history
  • Loading branch information
canfoo committed Aug 29, 2021
1 parent b4424a9 commit 0a7cd15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/compile-core/npm/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export class Component {


function update($component, state = {}) {
$component.state = Object.assign($component.state, state)
let data = $component.createData(state)
data['$leoCompReady'] = true
$component.state = data
Expand Down

0 comments on commit 0a7cd15

Please sign in to comment.