v3
veypi 4 weeks ago
parent 4904d1cc76
commit 7841f34cbb

@ -130,7 +130,7 @@ function Watch<T extends Object>(data: T) {
set(target: Object, key: string | symbol, newValue: any, receiver: any) {
// console.log(`${did} set ${key.toString()} ${newValue}`)
const result = Reflect.set(target, key, newValue, receiver);
if (result) {
if (result && listen_tags.length === 0) {
let lkey = key
if (isArray) {
lkey = ''

Loading…
Cancel
Save