Преглед изворни кода

fix: avoid isPromise check when handler return value is Vue instance

fix #9418
Evan You пре 7 година
родитељ
комит
b6b42ca8c4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/core/util/error.js

+ 1 - 1
src/core/util/error.js

@@ -35,7 +35,7 @@ export function invokeWithErrorHandling (
   let res
   try {
     res = args ? handler.apply(context, args) : handler.call(context)
-    if (isPromise(res)) {
+    if (res && !res._isVue && isPromise(res)) {
       res.catch(e => handleError(e, vm, info + ` (Promise/async)`))
     }
   } catch (e) {