Skip to content

Commit 9137831

Browse files
authored
fix: the argument of the function has been changed from a non-existent variable to a passed variable (#613)
1 parent d97feea commit 9137831

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

book/online-book/src/30-basic-reactivity-system/010-ref-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class RefImpl<T> {
5353
}
5454

5555
set value(newVal) {
56-
this._value = toReactive(v)
56+
this._value = toReactive(newVal)
5757
triggerRefValue(this)
5858
}
5959
}

book/online-book/src/zh-cn/30-basic-reactivity-system/010-ref-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class RefImpl<T> {
5353
}
5454

5555
set value(newVal) {
56-
this._value = toReactive(v)
56+
this._value = toReactive(newVal)
5757
triggerRefValue(this)
5858
}
5959
}

book/online-book/src/zh-tw/30-basic-reactivity-system/010-ref-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class RefImpl<T> {
5353
}
5454

5555
set value(newVal) {
56-
this._value = toReactive(v)
56+
this._value = toReactive(newVal)
5757
triggerRefValue(this)
5858
}
5959
}

0 commit comments

Comments
 (0)