File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5466,10 +5466,10 @@ function diffData (vm, data) {
5466
5466
var vmMpProps = vm . _mpProps || { } ;
5467
5467
var vmComputedWatchers = vm . _computedWatchers || { } ;
5468
5468
Object . keys ( vmMpProps ) . forEach ( function ( mpItemKey ) {
5469
- data [ rootKey + '.' + mpItemKey ] = vmMpProps [ mpItemKey ] ;
5469
+ data [ rootKey + '.' + mpItemKey ] = vm [ mpItemKey ] ;
5470
5470
} ) ;
5471
5471
Object . keys ( vmComputedWatchers ) . forEach ( function ( computedItemKey ) {
5472
- data [ rootKey + '.' + computedItemKey ] = vmComputedWatchers [ computedItemKey ] [ 'value' ] ;
5472
+ data [ rootKey + '.' + computedItemKey ] = vm [ computedItemKey ] ;
5473
5473
} ) ;
5474
5474
// 更新的时候要删除$root.0:{},否则会覆盖原正确数据
5475
5475
delete data [ rootKey ] ;
Original file line number Diff line number Diff line change @@ -141,10 +141,10 @@ export function diffData (vm, data) {
141
141
const vmMpProps = vm . _mpProps || { }
142
142
const vmComputedWatchers = vm . _computedWatchers || { }
143
143
Object . keys ( vmMpProps ) . forEach ( ( mpItemKey ) => {
144
- data [ rootKey + '.' + mpItemKey ] = vmMpProps [ mpItemKey ]
144
+ data [ rootKey + '.' + mpItemKey ] = vm [ mpItemKey ]
145
145
} )
146
146
Object . keys ( vmComputedWatchers ) . forEach ( ( computedItemKey ) => {
147
- data [ rootKey + '.' + computedItemKey ] = vmComputedWatchers [ computedItemKey ] [ 'value' ]
147
+ data [ rootKey + '.' + computedItemKey ] = vm [ computedItemKey ]
148
148
} )
149
149
// 更新的时候要删除$root.0:{},否则会覆盖原正确数据
150
150
delete data [ rootKey ]
You can’t perform that action at this time.
0 commit comments