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: '',
|
||||
};
|
||||
}
|
||||
let value = Reflect.get(target, prop, receiver);
|
||||
let value = Reflect.get(target, prop, target);
|
||||
if (typeof value === 'function') {
|
||||
return value.bind(receiver);
|
||||
}
|
||||
@ -170,7 +170,7 @@ patch(PosStore.prototype, {
|
||||
if (prop === 'lines') {
|
||||
return changedLines;
|
||||
}
|
||||
let value = Reflect.get(target, prop, receiver);
|
||||
let value = Reflect.get(target, prop, target);
|
||||
if (typeof value === 'function') {
|
||||
return value.bind(receiver);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user