Ver código fonte

fix two way binding with paths (fix #972)

Evan You 11 anos atrás
pai
commit
60fd14e6d1
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/directives/prop.js

+ 1 - 1
src/directives/prop.js

@@ -67,7 +67,7 @@ module.exports = {
           child,
           childKey,
           withLock(function (val) {
-            parent[parentKey] = val
+            parent.$set(parentKey, val)
           })
         )
       })