Skip to content

Commit c60fb7f

Browse files
虞上将虞上将
虞上将
authored and
虞上将
committed
1 parent 1762a66 commit c60fb7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/observer/dep.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Dep.target = null
5656
const targetStack = []
5757

5858
export function pushTarget (_target: ?Watcher) {
59-
if (Dep.target) targetStack.push(Dep.target)
59+
if (Dep.target !== null) targetStack.push(Dep.target)
6060
Dep.target = _target
6161
}
6262

0 commit comments

Comments
 (0)