Skip to content

Commit 7442af6

Browse files
author
魏无羡
committed
fix:Table utils deepCompare function
1 parent 173e2dc commit 7442af6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/table/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,12 @@ const deepCompare = (obj1: any, obj2: any): boolean => {
151151
}
152152
for (let key in obj1) {
153153
if (deepCompare(obj1[key], obj2[key])) {
154-
return true
154+
return false
155155
}
156156
}
157157
return true
158158
}
159-
return obj1 !== obj2
159+
return !Object(obj1,obj2)
160160
}
161161

162162
export {

0 commit comments

Comments
 (0)