fix(watch): ignore lazy option in simple watch (#546)

* fix(watch): ignore lazy option in simple watch

* test: ignore lazy option in simple watch
This commit is contained in:
Yang Mingshan
2019-12-19 00:46:59 +08:00
committed by Evan You
parent c57837c324
commit c2c9c2b57e
2 changed files with 20 additions and 1 deletions

View File

@@ -197,7 +197,7 @@ function doWatch(
scheduler: applyCb ? () => scheduler(applyCb) : scheduler
})
if (!lazy) {
if (!lazy || !cb) {
if (applyCb) {
scheduler(applyCb)
} else {