fix: update Reflect.get receiver to target in pos_store proxy handlers
This commit is contained in:
parent
05ab799192
commit
3ce178a631
@ -142,7 +142,7 @@ patch(PosStore.prototype, {
|
|||||||
decimalPart: '',
|
decimalPart: '',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
let value = Reflect.get(target, prop, receiver);
|
let value = Reflect.get(target, prop, target);
|
||||||
if (typeof value === 'function') {
|
if (typeof value === 'function') {
|
||||||
return value.bind(receiver);
|
return value.bind(receiver);
|
||||||
}
|
}
|
||||||
@ -170,7 +170,7 @@ patch(PosStore.prototype, {
|
|||||||
if (prop === 'lines') {
|
if (prop === 'lines') {
|
||||||
return changedLines;
|
return changedLines;
|
||||||
}
|
}
|
||||||
let value = Reflect.get(target, prop, receiver);
|
let value = Reflect.get(target, prop, target);
|
||||||
if (typeof value === 'function') {
|
if (typeof value === 'function') {
|
||||||
return value.bind(receiver);
|
return value.bind(receiver);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user