mirror of
https://github.com/CzBiX/qb-web.git
synced 2026-05-04 19:03:16 +08:00
Fix bug in vue object merge
This commit is contained in:
@@ -6,7 +6,7 @@ import { isPlainObject } from 'lodash';
|
||||
export const stateMerge = function(state: any, value: any, propName?: string, ignoreNull?: boolean) {
|
||||
if (isPlainObject(state) && (propName == null || propName in state)) {
|
||||
const o = propName == null ? state : state[propName];
|
||||
if (o != null) {
|
||||
if (o != null && isPlainObject(value)) {
|
||||
for (const prop in value) {
|
||||
stateMerge(o, value[prop], prop, ignoreNull);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user