chore: fix typo (#12894)

This commit is contained in:
董雨航 2022-12-06 22:35:28 +08:00 committed by GitHub
parent 9dd006b481
commit ca11dc6a86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ import { isReadonly, isRef, TrackOpTypes, TriggerOpTypes } from '../../v3'
const arrayKeys = Object.getOwnPropertyNames(arrayMethods)
const NO_INIITIAL_VALUE = {}
const NO_INITIAL_VALUE = {}
/**
* In some cases we may want to disable observation inside a component's
@ -79,7 +79,7 @@ export class Observer {
const keys = Object.keys(value)
for (let i = 0; i < keys.length; i++) {
const key = keys[i]
defineReactive(value, key, NO_INIITIAL_VALUE, undefined, shallow, mock)
defineReactive(value, key, NO_INITIAL_VALUE, undefined, shallow, mock)
}
}
}
@ -145,7 +145,7 @@ export function defineReactive(
const setter = property && property.set
if (
(!getter || setter) &&
(val === NO_INIITIAL_VALUE || arguments.length === 2)
(val === NO_INITIAL_VALUE || arguments.length === 2)
) {
val = obj[key]
}