Explorar el Código

return set value in Vue.set() (close #1970)

Evan You hace 10 años
padre
commit
e3768217c8
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/util/lang.js

+ 1 - 0
src/util/lang.js

@@ -33,6 +33,7 @@ export function set (obj, key, val) {
       vm._digest()
     }
   }
+  return val
 }
 
 /**