Skip to content

Commit

Permalink
fix(taro-weapp): 修复 json diff
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Oct 9, 2018
1 parent eb0895f commit 4ed1d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-weapp/src/util.js
Expand Up @@ -166,7 +166,7 @@ export function diffObjToPath (to, from, res = {}, keyPrev = '') {
}
} else {
// null
if (!toItem || !fromItem || keyList(toItem).length < keyList(fromItem).length) {
if (!toItem || !fromItem) {
res[targetKey] = toItem
} else {
// 对象
Expand Down

0 comments on commit 4ed1d45

Please sign in to comment.